Just wondering, about variable declaration in Blitzmax.
For example, C++ style if you have 2 classes where one refers to the other you can include the header file within so that the compiler knows these parameters are declared elsewhere.
In Blitzmax if I create something I need to create the parented variable before the one after it.
Is there anyway to declare variables at the beginning so strict declaration order isn't necessary.
Heh. Hope that made sense. :)
Crap example:-
main.bmx
parp.bmx
turnip.bmx
For example, C++ style if you have 2 classes where one refers to the other you can include the header file within so that the compiler knows these parameters are declared elsewhere.
In Blitzmax if I create something I need to create the parented variable before the one after it.
Is there anyway to declare variables at the beginning so strict declaration order isn't necessary.
Heh. Hope that made sense. :)
Crap example:-
main.bmx
include "parp.bmx" include "turnip.bmx"
parp.bmx
global parp = turnip ; turnip does not exist because it hasn't been declared till later
turnip.bmx
global turnip = 0