Arguments which are passed to
load, after removing the keyword-value pairs for
:callback (if supplied).
A generalized boolean. When allow-any-type is true and the supplied pathname has a type,
load-data-file tries to load it as a binary file without checking whether the type is known. When allow-any-type is
load-data-type tries to load only pathnames with known binary types (that is, either *binary-file-type* or in the list *binary-file-types*), exactly like
load. The default value of allow-any-type is
A function of one argument which is called with the result of the evaluation of each form in the file (or the form itself if eval is
nil). When callback is supplied, the keyword
load) has no effect.
A generalized boolean which controls whether the form is actually evaluated. When it is
nil, the form as loaded from the file (without evaluation) is passed to the callback (if supplied) and printed (if
:print t is supplied). When eval is non-nil, the form is evaluated before being passed to the callback and/or printed. The default value of eval is
load-data-file ends up trying to load a file that is not a proper binary file, it signals an error of type fasl-error.
During the load, each form is loaded and, if eval is true, evaluated. If there is a callback, it is called with the result of the evaluation. Otherwise, the result may be printed if
:print t was passed, and is then discarded.
tto give the same behavior as in LispWorks 6.1 and earlier versions. Passing eval as
niland using a callback is probably a better way of transferring data around, because it avoids the calls to
eval. If needed, callback can call
load-data-fileon any x86/x64 or ARM architecture can be used to load a data file that was generated on any x86/x64 or ARM architecture. The reverse byte order is used by Power architecture (IBM AIX and old Mac OS X) and SPARC (old Solaris).
load-data-filereturns the same value as
load. In particular, the return value has nothing to do with the forms in the file. To actually have an effect, either the forms themselves have side effects, or the callback argument is used to perform any required side effects.
load-data-filedoes not do any read operation, but if the forms in the file contain symbols (except
nil) such symbols need to be interned.
load-data-filewas in the SYSTEM package. It is still exported from SYSTEM for backwards compatibility.
load-data-filegave errors if the type was not recognized, but now by default it allows any type.
For a simple example see dump-forms-to-file.
LispWorks User Guide and Reference Manual - 13 Feb 2015