[iterate-devel] Bug in "the type" expansion?

rif rif at mit.edu
Sat Oct 30 16:26:34 UTC 2004


According to page 20 of the September 2004 version of the manual, I
would expect

(iter (for (the fixnum n) in '(3 5 7 8 9)) (counting (oddp n)))

to expand into a form in which n was declared/guaranteed fixnum.  It
does not.  It binds n to nil initially, and (therefore?) omits the
declaration.

(iter (for n in '(3 5 7 8 9)) (declare (fixnum n)) (counting (oddp n)))

does the right thing.

Cheers,

rif




More information about the iterate-devel mailing list