RosettaCodeData/Task/Variables/Oz/variables-11.oz
2023-07-01 13:44:08 -04:00

7 lines
189 B
Text

declare
A = {NewCell 42}
OldVal
in
{Show @A} %% read a cell with @
A := 43 %% change its value
OldVal = A := 44 %% read and write at the same time (atomically)