Go to the first, previous, next, last section, table of contents.


Directives for using code in other files

Author(s): Daniel Cabeza.

Version: 1.5#118 (2000/4/19, 18:13:43 CEST)

Version of last change: 1.3#107 (1999/11/18, 13:6:14 MET)

Usage and interface (loading_code)

Documentation on internals (loading_code)

DECLARATION: ensure_loaded/1:

Usage: :- ensure_loaded(File). * ISO *

DECLARATION: include/1:

Usage: :- include(File). * ISO *

DECLARATION: use_package/1:

:- use_package(Package).

Specifies the use in this file of the packages defined in Package. See the description of the third argument of module/3 for an explanation of package files.

This directive must appear the first in the file, or just after a module/3 declaration. A file with no module declaration, in the absence of this directive, uses an implicit package iso, which enables to include ISO-Prolog compatible code (compatibility not 100% yet).

Usage 1: :- use_package(Package).

Usage 2: :- use_package(Package).


Go to the first, previous, next, last section, table of contents.