Specifications
74
5.5.3 Variables Not Declared to be Global or Local
If not declared to be global or local, a variable is closed in each file where it is defined. A vari-
able used inside the
FUNCTION or SUB function without declaration is available only within a
function where it is defined.
(Example)
FUNCTION addaa(x)
addaa=aa%+x
END FUNCTION
SUB printaa(x)
print aa%+x
END SUB
aa%=2
print addaa(2)
printaa(2)
In the above example, all variables aa% used in "addaa," "printaa," and others will be treated
as different ones.