Stream corresponding to the fasl file to be created.
Name of the fasl file to be created.
Forms, some of which may be dumped.
with-output-to-fasl-file
is used in conjunction with dump-form to dump selected forms.
Supply an appropriate fasl extension in
pathname
. A simple way to achieve this is by calling
compile-file-pathname
. A complete list of fasl extensions for supported platforms may be found in compile-file.
A fasl file created using
with-output-to-fasl-file
must be loaded only by load-data-file, and not by
load
.
SYSTEM 5 > (with-output-to-fasl-file (s "/tmp/foo.fasl")
(dump-form '(print 'hello) s))
0
NIL
SYSTEM 6 > (load "/tmp/foo.fasl")
; Loading fasl file /tmp/foo.fasl
HELLO
#P"/tmp/foo.wfasl"