[Bese-devel] Re: ucw:a & action parameters other than self

Attila Lendvai attila.lendvai at gmail.com
Mon Apr 17 11:21:46 UTC 2006


>
> (loop
>   for i from 1 to number-of-pages
>   collect (let ((another-i i))
>             (lambda () another-i)))
>

i have this in my utils for this:

(defmacro rebind (bindings &body body)
  `(let (,@ (iter (for binding in bindings)
                  (collect (list binding binding))))
    , at body))

notice the difference between rebind and rebinding. 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.

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.

- attila

(alias 101 on irc &no 'its not lisp code :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20060417/b22aa80f/attachment.html>


More information about the bese-devel mailing list