Laurent, Looking through the output of javap -v, it looks to me like this is roughly what's been emitted (please forgive the mix of clojure and java):
try { (prn :test) (swap! a inc) (.foo nil) } finally { (swap! a inc) (.foo nil) } Which explains why @a is 3 -- I'm not sure this is intended, though. Joe On Aug 10, 9:52 am, Laurent PETIT <laurent.pe...@gmail.com> wrote: > Weird indeed: > > user=> (def a (atom 1)) > #'user/a > user=> (try (prn :test) (finally (swap! a inc) (.foo nil))) > :test > java.lang.NullPointerException (NO_SOURCE_FILE:0) > user=> @a > 3 > > I would have expected 2 as a result, in any case ? > -- 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