RosettaCodeData/Task/Variables/Oz/variables-11.oz

8 lines
189 B
Text
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
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)