Re: Question about scope and let...

Gary King <[email protected]>
Newsgroups gmane.lisp.allegro
Message-ID <[email protected]>
Eval evaluates symbols in the global environment, not in the lexical 
environment of the let.

On Tuesday, January 28, 2003, at 03:03 AM, Fabrizio Morbini wrote:

> Hi, why there is this behaviour?
>
> CL-USER(1): (setq var-test 5)
> 5
> CL-USER2: (let ((var-test 4)) var-test (eval 'var-test))
>
> 4
> 5
> CL-USER(3):
>
> Thank you very much and Best Regards.
>
> Fabrizio.
>
>
-- 
Gary Warren King
Senior Research Fellow
Experimental Knowledge Systems Laboratory
Department of Computer Science
Computer Science Building
Amherst, Massachusetts 01003
413.577.0176
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.