AutoHotkey_L v1.0.90 and Roadmap
FYI, super-global declarations are already possible in v2 alpha. The current limitation is that like all variable declarations, they are positional.
Further to fragman's post, a common source of bugs in scripts is forgetting to declare a variable global in each function. It is also important for class definitions: once a class is defined, it is counter-intuitive to have to declare it in each function before it can be used. Actually, I think that it is generally counter-intuitive for so-called "global" variables to be invisible to functions by default, but given the "no declaration required" nature of AutoHotkey, it might be the lesser evil. Requiring a (single) declaration to make the variable visible in all functions seems like a good compromise between convenience and maintainability.
FYI, super-global declarations are already possible in v2 alpha. The current limitation is that like all variable declarations, they are positional.
I fully agree to your argumentation. Does positional mean that they are only useable by code below their declaration, or does the line have to be executed before it can be used?
Yes.Does positional mean that they are only useable by code below their declaration,