On Thu, Sep 17, 2009 at 6:15 PM, Gorsal <s...@tewebs.com> wrote:

> Or maybe i could simply push to the global var and in addition to the
> value use a unique gensymed id. Then once the local binding was done
> it would pop until it sees its gensymed id. That would work in the
> situation that a local binding failed to pop its own binding. That
> might work...


Why not just use an atom, if you want it globally, or a single global var
and "binding", if you want thread-local values. If you want it changed
globally but put back after, save the value and use try ... finally to
ensure it gets put back.

--~--~---------~--~----~------------~-------~--~----~
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