Next: mpg-ref-save_predicates, Previous: mpg-ref-save_files, Up: mpg-bpr [Contents][Index]
save_modules/2
save_modules(+Modules, +File)
Saves all predicates in Modules in PO format to File.
atom or list of atom, must be ground
An atom representing a current module, or a list of such atoms representing a list of modules.
file_spec, must be ground
A file specification, ‘.po’ extension optional.
The module declarations, predicates, multifile clauses and initializations belonging to Modules are saved in object format into the file denoted by File. Source file information and embedded directives (except initializations) are not saved.
The
PO file produced can be loaded using load_files/[1,2]
.
When multiple modules are saved into a file, loading that file will
import only the first of those modules into the module in which the
load occurred.
instantiation_error
Modules or File is not bound.
type_error
Modules is not a valid list of module names, or a single module name, or File is not a valid file specification.
permission_error
File is not writable.
existence_error
A given module is not a current module.
load_files/[1,2]
, Saving,
ref-sls, ref-sls-ssl.