get And Set Volatile Slot
fun getAndSetVolatileSlot(field: ObjectSlotsEnum, anAvailObject: A_BasicObject): AvailObject
Content copied to clipboard
Store the AvailObject in the specified slot of the receiver, and answer the value that was previously in that slot. Use atomic write semantics that are compatible with volatile access. Note that this may answer nil if it's used on an unassigned variable's value slot.
Return
The previous value from the specified slot.
Parameters
field
An enumeration value that defines the field ordering.
an Avail Object
The object to store at the specified slot.