On Fri, Mar 5, 2010 at 4:08 PM, eyeris <[email protected]> wrote:

> I don't follow your logic. Modifications of refs within a transaction
> retry too.
>

He's saying that atoms don't participate in the STM. If an atom depends on
the value of some refs, your program might be put into an inconsistent state
if the transaction is retried and you're changing the value of the atom in
the transaction.

In general using an atom means you're sure that you'll never want to perform
an atomic change of both it and some other mutable reference in your
program.

That's my understanding of it anyway.

David

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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

Reply via email to