Next Prev Up Top Contents Index

with-output-to-fasl-file

Function
Summary

Sends output to a fasl file on disk.

Package

hcl

Signature

with-output-to-fasl-file ( stream pathname &rest options ) &body body => nil

Arguments

stream

Stream corresponding to the fasl file to be created.

pathname

Name of the fasl file to be created.

body

Forms, some of which may be dumped.

Values

Returns nil .

Description

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 .

Example
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"
See also
dump-form
dump-forms-to-file

 


LispWorks Reference Manual - 25 Jul 2003

Next Prev Up Top Contents Index