Hi,
In some post Rich recommended: (let [z (ref 0)] (defn add2 [] (dosync (alter z #(inc %))))) instead of (let [z (ref 0)] (defn add2 [] (dosync (refset z (inc @z))))) ; !!! deref @z again Then Is there any way not to deref again for this? It's from ants.clj (alter oldp assoc :pher (inc (:pher @oldp))) Thanks, sun --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---