All Manuals > LispWorks® User Guide and Reference Manual > 37 The HCL Package

with-output-to-fasl-file Macro

Summary

Opens a file in a binary format that can be used to dump objects.

Package

hcl

Signature

with-output-to-fasl-file (fasl-stream-var pathname &key overwrite dump-standard-objects delete-on-error) &body body => nil

Arguments
fasl-stream-var
A variable.
pathname
A pathname designator.
overwrite
A boolean.
dump-standard-objects
A boolean.
delete-on-error
A boolean.
body
Lisp forms that call dump-form.
Description

The macro with-output-to-fasl-file helps to dump forms to a file in a binary format, which can then be loaded using load-data-file.

with-output-to-fasl-file binds fasl-stream-var to an opaque structure associated with pathname. Inside body, dump-form can be used to dump individual forms to the file.

See dump-forms-to-file for a description of how overwrite, delete-on-error and dump-standard-objects are used.

A fasl file created using with-output-to-fasl-file must be loaded only by load-data-file, and not by load.

See also

load-data-file
dump-forms-to-file
dump-form


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:35