The documentation for commute says "Sets the in-transaction-value of ref ...". This implies to me that when the transaction ends, the ref will have its previous value.
(def myRef (ref 19)) (dosync (commute myRef inc)) -> 20 @myRef -> 20 Why isn't the value of the last line 19? -- R. Mark Volkmann Object Computing, Inc. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---