When outside a sub/func this, IMHO, should be GLOBAL by default but when inside a SUB/func, I think creating a GLOBAL is simply not right unless the GLOBAL keyword is used. LOCAL should be the default in a sub/func.
Cheers,
Ian
right. It implicitly creates a local now. The message is wrong. Try it?
Nope, its creating a GLOBAL I am afraid, even when the var is defined within a function.
myfunc()
myfunc2()
SHOWSCREEN
MOUSEWAIT
FUNCTION myfunc:
blah = 10
ENDFUNCTION
FUNCTION myfunc2:
PRINT blah, 100, 10
ENDFUNCTION
Displays "10", if it was defined within the function as a LOCAL the value would have been lost.
Cheers,
Ian