Kawa: Compiling Scheme to Java
1.10 Top-level environments
| | class Environment {
...
}
|
An Environment is a mapping from symbols to bindings.
It contains the bindings of the user top-level.
There can be multiple top-level Environments, and
an Environment can be defined as an extension
of an existing Environment.
The latter feature is used to implement the various standard
environment arguments that can be passed to eval,
as adopted for the next Scheme standard revision ("R5RS").
Nested environments were also implemented to support threads,
and fluid bindings (even in the presence of threads).