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

8 lines
226 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
declare
Var %% new variable Var, initially free
{Show Var}
Var = 42 %% now Var has the value 42
{Show Var}
Var = 42 %% the same value is assigned again: ok
Var = 43 %% a different value is assigned: exception