Yes, that would work. I keep forgetting the try finally acts like
unwind-protect. Even if the thread is killed the finally process will
execute. Ehh...

On Sep 17, 5:50 pm, John Harrop <jharrop...@gmail.com> wrote:
> 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