GetAndSet function (corresponding to cas function)

Adrian Mercieca amercieca at gmail.com
Mon Dec 26 12:34:39 PST 2011


Hi folks,

Would anyone answer me on this please?

To clarify, in Java there is are getAndSet methods on Atomic type objects 
(along with compareAndSet).

I know that in D there is the cas function (equivalent to Java's 
compareAndSet); is there an equivalent D function for Java's getAndSet 
please?


Thanks.


More information about the Digitalmars-d-learn mailing list