compare-and-set! relies on Atom record structure instead of protocols

Description

Here CAS uses .-state property, thus binding itself to Atoms only:

We can replace it with -deref call instead, opening it up for alternative implementations:

Environment

None

Activity

Show:
David Nolen
December 24, 2014, 2:39 PM
Completed

Assignee

Unassigned

Reporter

Nikita Prokopov

Labels

Approval

None

Patch

None

Priority

Major