Re: First-class environments
"Joe Marshall" <[email protected]>
| Newsgroups | gmane.comp.lang.lightweight |
|---|---|
| Message-ID | <[email protected]> |
On 4/5/06, Pascal Costanza <[email protected]> wrote: > > Joe has already responded to this. It should be possible to restrict > the negative effects of first-class environments to those parts of a > program where a lexical environment is actually reified, shouldn't it? Yes. MIT Scheme does this. If you use (the-environment) then all containing lexical environments are built in `interpreter-compatible' mode. The compiled code is much slower, though. You *used* to be able to call procedure-environment on an arbitrary closure to obtain its environment as a first-class object, but now with the compiler there is no telling what you might get back. -- ~jrm