Sends output to a fasl file on disk.
Stream to be bound to the fasl file to be created.
Name of the fasl file to be created.
Forms, some of which may be dumped.
is used in conjunction with dump-form. The
forms are executed, and during the execution, dump-form may be called to dump selected forms. Dumped forms are evaluated if the file
is later loaded by load-data-file.
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* as in the example below, or
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
CL-USER 12 > (with-output-to-fasl-file (s "/tmp/foo.fasl")
(dump-form '(print 'hello) s))
CL-USER 13 > (let ((sys:*binary-file-type* "fasl"))
; Loading fasl file "/tmp/foo.fasl"
LispWorks User Guide and Reference Manual - 21 Dec 2011