GLBasic forum

Main forum => GLBasic - en => Topic started by: bigtunacan on 2012-Jan-13

Title: Implicit Variable Declarations Scope?
Post by: bigtunacan on 2012-Jan-13
If the "Explicit declarations" option is disabled and a variable is used without being defined first using LOCAL or GLOBAL, what is the scope of the variable, local or global?
Title: Re: Implicit Variable Declarations Scope?
Post by: Kitty Hello on 2012-Jan-13
I think it switched to local at some time. I might be wrong. Test it?
Title: Re: Implicit Variable Declarations Scope?
Post by: bigtunacan on 2012-Jan-13
Test makes me believe it is global.