(setq x 33) (let ((x 44)) (eval '(print x)) nil) SBCL, CCL, CLISP, ABCL, ECL, GCL, MKCL all print 33. CMUCL prints 44. The spec is confusing to me. Which should it be? Thanks. Blake McBride
Blake McBride <blake1024@gmail.com> writes:
(setq x 33)
(let ((x 44)) (eval '(print x)) nil)
SBCL, CCL, CLISP, ABCL, ECL, GCL, MKCL all print 33.
CMUCL prints 44.
The spec is confusing to me. Which should it be? Whichever. The consequences of (setq x 33) are undefined.
-- With best regards, Stas.
"Stas" == Stas Boukarev <stassats@gmail.com> writes:
Stas> Blake McBride <blake1024@gmail.com> writes: >> (setq x 33) >> >> (let ((x 44)) >> (eval '(print x)) >> nil) >> >> SBCL, CCL, CLISP, ABCL, ECL, GCL, MKCL all print 33. >> >> CMUCL prints 44. >> >> The spec is confusing to me. Which should it be? Stas> Whichever. The consequences of (setq x 33) are undefined. And for the record, cmucl implicitly declares x to be special. Cmucl should have printed a message to that effect too. -- Ray
participants (3)
-
Blake McBride -
Raymond Toy -
Stas Boukarev