Node:Eval and Environments, Next:, Previous:Locations, Up:Extensions



Eval and Environments

eval expression [environment] Function
eval evaluates expression in the environment indicated by environment.

The default for environment is the result of (interaction-environment).

null-environment Function
This procedure returns an environment that contains no variable bindings, but contains (syntactic) bindings for all the syntactic keywords.

The effect of assigning to a variable in this environment (such as let) is undefined.

scheme-report-environment version Function
The version must be an exact non-negative inetger corresponding to a version of one of the Revisedversion Reports on Scheme. The procedure returns an environment that contains exactly the set of bindings specified in the corresponding report.

This implementation supports version that is 4 or 5.

The effect of assigning to a variable in this environment (such as car) is undefined.

interaction-environment Function
This procedure return an environment that contains implementation-defined bindings, as well as top-level user bindings.

environment-bound? environment symbol Function
Return true #t if there is a binding for symbol in environment; otherwise returns #f.

fluid-let ((variable init) ...) body ... Syntax
Evaluate the init expressions. Then modify the dynamic bindings for the variables to the values of the init expressions, and evaluate the body expressions. Return the result of the last expression in body. Before returning, restore the original bindings. The temporary bindings are only visible in the current thread, and its descendent threads.