From: Robert P. G. <rpg...@si...> - 2010-12-26 22:10:50
|
That is plausible to me, but I couldn't find an authority in the CLHS. Do you have a pointer? Thanks! "Scott L. Burson" <Sc...@sy...> wrote: >On Sun, Dec 26, 2010 at 10:09 AM, Robert Goldman <rpg...@si...> >wrote: >> Looking at some macroexpansions, I found what seems to me to be an >> oddity in SBCL's generation of style warnings: >> >> CL-USER> (defun foo (bar baz) >> (destructuring-bind (a b) bar >> (declare (ignore baz)) >> (* a b))) >> ; in: LAMBDA NIL >> ; (IGNORE BAZ) >> ; >> ; caught STYLE-WARNING: >> ; The variable BAZ is defined but never used. > >The IGNORE declaration has to go immediately within the binding >construct to be effective. In this case that means it has to precede >the DESTRUCTURING-BIND. This is a standard CL rule. > >-- Scott -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. |