Instead of compiling a file to generate a byte code file which then has to be loaded, a program may be executed interpretively by ``consulting'' the corresponding source file: consult/1 (L) consult/2 (L)
At this point, the options recognized for consult are the following:
In addition to the above, options for the macro expander are also recognized (see Section )).
consult will create an index on the principal functor of the first argument of the predicates being consulted, unless this is changed using the index/3 directive. In particular, note that if no index is desired on a predicate foo/n, then the directive
It is important to note that SB-Prolog's consult predicate is similar to that of Quintus Prolog, and behaves like C-Prolog's reconsult. This means that if a predicate is defined across two or more files, consulting them will result in only the clauses in the file consulted last being used.