Next: , Previous: , Up: mpg-bpr   [Contents][Index]


11.3.104 include/1   declaration, ISO

Synopsis

:- 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.

Arguments

:Files

file_spec or list of file_spec, must be ground

A file specification or a list of file specifications; extension optional.

Description

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:

Comments

include is not an ISO predefined prefix operator.

Exceptions

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.

See Also

Include Declarations.


Send feedback on this subject.