7 Additional Extensions to Common Lisp
loadreads in a file and evaluates each form contained in it. There are two types of files that are significant to
load: a source file is a text file that contains Common Lisp expressions; a binary file is a file produced from a source file by the Compiler. The default behavior of
loadis to load the binary file whenever it is newer than the source file.
In Liquid Common Lisp,
load can accept additional keyword arguments that allow it to discern the most appropriate action to take under certain situations, such as compiling a source file before loading it.
For example, if you want
load to load the source file if it is newer than the binary file, you would set
:load-source. If you want to load the binary file even though the source file is newer, set
load reports its progress by printing the names of the files being loaded to the standard output stream.
The load facility also provides several variables that contain the initial values for the keyword extensions to
*ignore-binary-dependencies* *load-binary-pathname-types* *load-if-source-newer *load-if-source-only* **load-source-pathname-types*Modifying the values of these variables also affects the loading behavior.
Generated with Harlequin WebMaker