Hello Korny,

I share your questioning.

On 1 avr, 06:57, Korny Sietsma <ko...@sietsma.com> wrote:
> (A) one ref for the whole world - in which case how do I stop parallel
> changes to two unrelated structures in the world from causing transaction
> retries?

In this case, I wonder whether to extend "ensure" so as to be able to
ensure an invariant over a ref would be a good idea.
eg:

(ensure world f arg1 arg2) ; compute (f @world arg1 arg2)
;....
(commute world g arg3 arg4) ; commute iff (f @world arg1 arg2) still
returns the same value.


Christophe
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to