eval expression environment-specifier | procedure |
Evaluates expression in the specified environment and returns its value.
Expression must be a valid Scheme expression represented as data,
and environment-specifier must be a value returned by one of the
three procedures described below.
Implementations may extend (eval '(* 7 3) (scheme-report-environment 5)) ==> 21 (let ((f (eval '(lambda (f x) (f x x)) (null-environment 5)))) (f + 10)) ==> 20 |
scheme-report-environment version | procedure |
null-environment version | procedure |
Version must be the exact integer Other values of version can be used to specify environments
matching past revisions of this report, but their support is not
required. An implementation will signal an error if version
is neither The effect of assigning (through the use of |
interaction-environment | optional procedure |
This procedure returns a specifier for the environment that contains implementation-defined bindings, typically a superset of those listed in the report. The intent is that this procedure will return the environment in which the implementation would evaluate expressions dynamically typed by the user. |