load -- r7rs Definition procedure;
Procedure variants:
((path-string) -> (undefined))
path-string;undefined;((path-string eval-environment) -> (undefined))
path-string;eval-environment;undefined;scheme:load -- (scheme load);scheme -- (scheme);(load filename) (load filename environment-specifier)Domain: It is an error if
filenameis not a string.An implementation-dependent operation is used to transform
filenameinto the name of an existing file containing Scheme source code. Theloadprocedure reads expressions and definitions from the file and evaluates them sequentially in the environment specified byenvironment-specifier. Ifenvironment-specifieris omitted,(interaction-environment)is assumed.It is unspecified whether the results of the expressions are printed. The
loadprocedure does not affect the values returned bycurrent-input-portandcurrent-output-port. It returns an unspecified value.Rationale: For portability,
loadmust operate on source files. Its operation on other kinds of files necessarily varies among implementations.
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.