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

Environments vs. Namespaces



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


>