Globals

BlitzMax Forums/BlitzMax Beginners Area/Globals

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ive reposted this from "Globals in functions", because it seems to have got lost amongst the trees.

When are globals created.

IF I declare a global is it "Created" (Ie actual physical space given to it) at compile time or Run time.

If at run time Is the global created when program flow passes it, or when the program "Initialises"

(Cavat)Is a global created and initialised as a field for a type at the first instance of new for that type, or at the first refference to that type

(Its the last one I really like the info for)
Thanks