A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/lw71/LW/html/lw-622.htm below:

load-data-file

Arguments

pathname

A pathname designator naming a file which must have been created by dump-forms-to-file or with-output-to-fasl-file.

load-args

Arguments which are passed to load, after removing the keyword-value pairs for :allow-any-type and :callback (if supplied).

allow-any-type

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 nil, 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 t.

callback

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 :print (which normally would be processed by load) has no effect.

Note: callback works only when the file was generated by LispWorks 7.0 or later.

eval

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 t.

Description

The function load-data-file loads a fasl file created by dump-forms-to-file or with-output-to-fasl-file.

load-data-file has similar semantics to load, but treats fasl files differently:

Fasl files generated by dump-forms-to-file or with-output-to-fasl-file must only be loaded using load-data-file.

load-data-file never loads a file as a text file, only files that are recognized as binary, which can be one of these possibilities:

If 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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4