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

8 lines
226 B
Text
Raw Permalink Normal View History

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