next up previous
Next: 5 Internet programming with Up: 4 Using BinProlog Previous: 4.11 Builtins

4.12 Source code loading methods

The preferred use of BinProlog is through reloading a unique project file containing included files gif.

A smart compile facility (scompile/1) implement a basic make facility: if the *.wam version of the file is newer it will be reloded very quickly instead of recompiling the corresponding *.pl file.

Including files.

For both compiled and consulted files use a generic include directive:

:-[file].

which automatically adjusts to your current load method. You can set your prefered loading method directly from the command line using option l. Explicite use of compile/1 or reconsult/1 can be used to restrict your selection to a current compile method or consult method.

Use co/0 and ed/0 as a shorthand to reload/re-edit the last compiled/consulted file.

Use file as a short hand to reconsult a file with your current consult method. This is useful if your load method is by default a version of compile but you want to reconsult a file so that you can debug/list clauses of verious predicates.



next up previous
Next: 5 Internet programming with Up: 4 Using BinProlog Previous: 4.11 Builtins



Paul Tarau
Thu Apr 3 10:26:39 AST 1997