1: Option Explicit
This throws an "error: "number" has not been defined" while using a var on a GLOBAL array.
#option_explicit
SetErrorMode(2)
SetWindowTitle( "option_explicit" )
SetWindowSize(400,300,0)
SetVirtualResolution(400,300)
SetOrientationAllowed( 1, 1, 1, 1 )
//////////////////////////////////////////
GLOBAL DIM Test[5]
DO
Print( ScreenFPS() )
Sync()
LOOP
FUNCTION Blarg()
number AS INTEGER
number = 4
DIM Test[number] // Change a global array
ENDFUNCTION 0
2: Global & Constant
Are #Constant vars inherently GLOBAL?
I noticed a different function was accessing a #Constant var outside of the function.