Next: mpg-ref-initialization, Previous: mpg-ref-if_then, Up: mpg-bpr [Contents][Index]
include/1
declaration, ISO:- include +Files
Literally embed the Prolog clauses and directives in Files into the file being loaded. The file or files will be opened with default options.
file_spec or list of file_spec, must be ground
A file specification or a list of file specifications; extension optional.
The effect is such as if the declaration itself was replaced by the text in the Files. Including some files is thus different from loading them in several respects:
source_file/2
; see ref-lps-apf.
include
is not an ISO predefined prefix operator.
Exceptions in the context of loading code are printed as error messages.
See also load_files/[2,3]
.
context_error
Declaration appeared in a goal.
permission_error
Declaration appeared as a clause.