Function
hcl
dump-forms-to-file pathname forms => nil
Name of the fasl file to be created.
Forms to be dumped.
nil. dump-forms-to-file dumps specified forms to a fasl file. Use the Common Lisp functionsmake-load-form andmake-load-form-saving-slots to control the dumping of forms. load and so on. Machine Architecture | Fasl File Extension |
|---|---|
68000 |
|
DECstation |
|
SPARC |
|
MIPS |
|
Clipper |
|
386 UNIX |
|
386 Windows |
|
system:*binary-file-type*. The variablesystem::*binary-file-types* contains a list of all the file extensions currently recognized byload.
USER 1 > (in-package "CL-USER")
#<The CL-USER package, 592/879 internal, 148/224 external>
CL-USER 2 > (defclass my-class () ((a :initarg :a :accessor my-a)))
#<class MY-CLASS>
CL-USER 3 > (setq my-instance (make-instance 'my-class :a 23))
#<standard-instance MY-CLASS>
CL-USER 4 > (defmethod make-load-form ((self my-class))
'(make-instance ',(class-name (class-of self))
:a ',(my-a self)))
#<Method MAKE-LOAD-FORM NIL (MY-CLASS)>
CL-USER 5 > (hcl:dump-forms-to-file
#p"/usr/users/ca/eg.wfasl"
'(my-instance))
NIL