[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Environments vs. Namespaces



Unfortunately, namespaces in mzscheme only contain the top-level 
bindings, not any lexical bindings. In fact, there is no way to grab 
the lexical bindings like you seem to want to do.

Sorry,
Robby


At 4:41 PM +0200 9/27/00, David Skoupil wrote:
>Hi,
>
>at our university, we are switching from MIT-Scheme to Dr.Scheme. We got
>quite confused about the notion "namespace" and its relation to
>"environment". For example, in the following case we expect to get answer
>"10" but we get answer "1".
>
>(define a 1)
>(define e
>     (let ((a 10))
>        (current-namespace)))
>(eval 'a e)
>
>Clearly, current-namespace in PLT is not the same thing as
>the-environment in MIT Scheme.
>
>What are we missing?
>
>Thanks for any help.
>
>David.
>-----------------------------------------------
>David Skoupil
>Palacky University
>skoupil@upol.cz
>www.upol.cz/~skoupil
>
>
>>