Local variables have lexical scope
(defun gamma (v)
(let ((w 7))
(print v)
(print w)
(delta (+ v w))))
(defun delta (delta-arg)
(print delta-arg)
(print w) ; this won’t work
(print v) ; this won’t work either
)
Previous slide
Next slide
Back to first slide
View graphic version