<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">(loop<br>  for i from 1 to number-of-pages<br>  collect (let ((another-i i))<br>            (lambda () another-i)))
<br></blockquote></div><br>i have this in my utils for this:<br><br>(defmacro rebind (bindings &body body)<br>  `(let (,@ (iter (for binding in bindings)<br>                  (collect (list binding binding))))<br>    ,@body))
<br><br>notice the difference between <span style="font-style: italic;">rebind</span> and <span style="font-style: italic;">rebinding.</span> the latter is already in arnesi, and works when dealing with macros. the former is not in arnesi (marco?) and useful when dealing with closures.
<br><br>these binding issues are all around, i've sent a parenscript patch just a day ago, that does what rebind above, but in js land.<br><br>- attila<br><br>(alias 101 on irc &no 'its not lisp code :)