<Body> should be a sequence of one or more definitions and
expressions. Module
sequentially evaluates the expressions and
definitions of <body> in a scheme report environment. Definitions
occuring at the top level cause bindings to be created in the binding
contour which the call to module
creates and returns.
Make-module
evaluates expression in a scheme report
environment. Definitions occuring at the top level cause bindings to be
created in the binding contour which the call to make-module
creates and returns.
Filename should be a string naming an existing file containing
Scheme source code. The load-module
procedure reads expressions
and definitions from the file and evaluates them sequentially in a
scheme report environment. Definitions occuring at the top level cause
bindings to be created in the binding contour which the call to
load-module
creates and returns.
The load-module
procedure does not effect the
values returned by current-input-port
and
current-output-port
.
Rationale: For portability, load-module
must operate on
source files. Its operation on other kinds of files necessarily varies
among implementations.
load
, any top
level bindings made in the loaded code are treated as though they were
part of the expression.
import-module
, any top level
bindings imported by import-module
, although visible to the
module code, are not automatically exported.
Module
, make-module
, and load-module
can each be
defined in terms of Module
, make-module
, or
load-module
.
Go to the first, previous, next, last section, table of contents.