add_import_module/4¶
add_import_module( + Module, + ImportModule , +Pos)* is det Add all exports in ImportModule as available to Module.
@class import_module_3
import_module( +ImportingModule, +ExportingModule )* is det
All exported predicates from _ExportingModule_
are automatically available to the source module ImportModule.
This innovation was introduced by SWI-Prolog. By default, modules only inherit from prolog
and user
. This extension allows predicates in any module to inherit from user
and other modules.
All exported predicates from ExportModule are made available to the source module ImportModule. If Position is bound to start
the module ImportModule is tried first, if Position is bound to end
, the module is consulted last.