On Mon, Nov 29, 2010 at 8:31 AM, Sunil S Nandihalli
<sunil.nandiha...@gmail.com> wrote:
> Hi Ken,
> Just wrapping your macro with the following would save you the trouble of
> having to enumerate the local variables ...
> (defmacro eval-with-local-bindings [sexp]
>   `(eval-with-local-vars ~(apply vector (keys &env)) ~sexp))

Yeah, nifty. I didn't know about &env when I wrote eval-with-local-vars. :)

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to