[plt-scheme] Scope of eval?

From: Jakub Piotr Cłapa (jpc at pld-linux.org)
Date: Sun Sep 30 17:40:10 EDT 2007

Carl Eastlund wrote:
> Eval only works on global variables.  In your example, x is a field
> bound in a specific object.

Global == top-level.

If you want to eval in some other context either wrap it with a lambda 
and call the returned value or play with namespace-* functions.

I have some examples for eval working together with mzc (it was a little 
tricky to get right).

-- 
regards,
Jakub Piotr Cłapa


Posted on the users mailing list.