[plt-scheme] Self evaluating "objects"

Cristian Baboi cristian.baboi at gmail.com
Mon Jul 14 10:22:43 EDT 2008


On Mon, 14 Jul 2008 13:01:10 +0300, Jos Koot <jos.koot at telefonica.net>  
wrote:


> BTW both R5RS and R6RS require two arguments for eval (the expression to  
> be evaluated and an environment)

Some more examples:

(begin
(define x 3)
(eval 'x (scheme-report-environment 5))
)

(begin
(define x 3)
(eval 'x (interaction-environment))
)

both return 3 in Gambit-C, but the first gives "reference to undefined  
identifier: x" in PLT



More information about the plt-scheme mailing list