Dumps specified forms to a fasl file.
Name of the fasl file to be created.
Forms to be dumped.
dumps specified forms to a fasl file. Use the Common Lisp functions
to control the dumping of forms.
To be able to load the output file, it must have a file type that LispWorks recognizes as a binary file. You can do it by:
using the default binary file type, either by using the value of *binary-file-type* or
as in the example below.
using another file type, which you add to *binary-file-types*.
If the file
already exists, it is superseded.
A fasl file created using
must be loaded only by load-data-file, and not by
(defclass my-class () ((a :initarg :a :accessor my-a)))
(defmethod make-load-form ((self my-class) &optional environment)
(declare (ignore environment))
`(make-instance ',(class-name (class-of self))
:a ',(my-a self)))
(setq *my-instance* (make-instance 'my-class :a 42))
(list `(setq *my-instance* ,*my-instance*)))
In another session, with the same definition of
, loading the file
using load-data-file will create an equivalent instance of
LispWorks User Guide and Reference Manual - 21 Dec 2011