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
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