A Caveat with EVAL
EVAL does not recognize lexical bindings:
> (let ((x 5)
(exp2 '(* 2 3 4 x)))
(print exp2)
(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