8 lines
189 B
Text
8 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)
|