Code: Select all
global counter := 1
x::{
MsgBox counter++
}
Instead, I think this code should throw a load-time error of "global cannot be specified as a top-level declaration" and maybe also suggest ", it should be moved to the functions where the global variable is being modified".
I think this would clear up a lot of confusion about misleading exceptions in this situation.