next up previous

13.1.2 Saving All Constructs To A File

Saves all of the constructs (defrules, deffacts, deftemplates, etc.) in the current environment into the file specified by <file-name>. Note that deffunctions and generic functions are saved twice to the file. Because it is possible to create circular references among deffunctions and generic functions by redefining them, a forward declaration (containing no actions) of the functions is saved first to the file, and then the actual declaration (containing the actions) is saved. This function returns TRUE if the file was successfully saved, otherwise FALSE is returned. This function uses the pretty-print forms of the constructs. If pretty-printing has been disabled by the conserve-mem command, then the save command will have no output.

Syntax

(save <file-name>)


next up previous