On Sat, Jun 29, 2013 at 9:21 PM, Ben Wolfson <[email protected]> wrote:

> On Sat, Jun 29, 2013 at 6:06 PM, Cedric Greevey <[email protected]>wrote:
>
>> Who said swap *was* CAS, rather than was implemented *in terms of* CAS?
>> In any event, your claim that "no comparison is done unless it's done in
>> the supplied function" is just plain wrong. Comparison *is* done, outside
>> that function, to make sure the atom wasn't changed by another thread while
>> the function was executing.
>>
>
> "swap! is for "CAS""
>

Who claimed that, again? I said  "swap! is for when the new value depends,
in some way, on the previous value", which is not the same thing, and then
mentioned twice that it's implemented in terms of CAS.

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to