[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How's that again?



Is the following behavior a bug, or am I blowing the declaration somehow?

? (defun foo (l)
    (dolist (x l)
      (print "Hi")))
;Compiler warnings :
;   Unused lexical variable X, in FOO inside an anonymous lambda form.
FOO
? (defun foo (l)
    (dolist (x l)
      (declare (ignore x))
      (print "Hi")))
;Compiler warnings :
;   Variable X not ignored, in FOO inside an anonymous lambda form.
FOO

-- Bob