This predicate imports all predicates for a module (first argument) that have been exported by one or more other modules (second argument). A public predicate that has been exported by one module can be called by source code in another module if it has been declared as imported (in that other module). With import_module/2 is it possible to specify for a module which predicates it imports from other modules.
For more information see the module system.
see also: check_singleton/1 discontiguous/1 dynamic/1 dynamic/2 ensure_loaded/1 import/1 import/2 import_module/1 include/1 initialization/1 multifile/1 private/0 private/1 public/0
| Examples | |
| import_module( code, [session, data] ). | the module with the name 'code' imports all exported predicates of the modules 'session' and 'data' |