A Caveat with EVAL
EVAL does not recognize lexical bindings:
> (let ((x 5)
(exp2 '(* 2 3 4 x)))
(print exp2) (newline)
(print (eval exp2)) )
Error: Attempt to take the value of the unbound variable 'x'.
Previous slide
Next slide
Back to first slide
View graphic version