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


Directives for using code in other files

Author(s): Daniel Cabeza.

Version: 1.10#7 (2006/4/26, 19:22:13 CEST)

Version of last change: 1.9#30 (2002/11/20, 14:15:12 CET)

Documentation for the directives used to load code into Ciao Prolog (both from the toplevel shell and by other modules).

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 default (see section Other predicates and features defined by default).

Usage 1: :- use_package(Package).

Usage 2: :- use_package(Package).


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