Rich, I've been working with refs tonight and I appreciate the validate-fn addition. Makes my life a lot easier.
>From reading the docs, 'ensure' keeps a ref from changing inside a dosync. But if accesses to refs are contained in function calls that are called during the transaction, the programmer might overlook them when writing the dosync. A hack I came up with to deal with this is to bind a new value to 'deref' that saves the ref to a list before calling the normal deref function. Then as a final step in the transaction, to go through the list of deref'd refs and call 'ensure' on each one. Do you have any thoughts on how to handle the situation better? Thanks, Jim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---