Global Variable Capture
(defvar width 5) ; global variable
(defmacro notice-width (w)
`(setq width ,w))
(defun draw-rectangle (x y width height)
(notice-width width)
(notice-height height)
. . .)
The macro does not affect the global variable as intended
Previous slide
Next slide
Back to first slide
View graphic version