digitalmars.D - Static constructors
- terranium (3/3) Apr 26 2008 Docs say:
 - Christopher Wright (8/12) Apr 26 2008 By 'main', the docs mean _Dmain, which is what you write as "main".
 
Docs say: A static constructor is defined as a function that performs initializations before the main() function gets control. But gc is initialized only *in* the main function (gc_init function) - is it normal to execute D code before gc initialization?
 Apr 26 2008
terranium wrote:Docs say: A static constructor is defined as a function that performs initializations before the main() function gets control. But gc is initialized only *in* the main function (gc_init function) - is it normal to execute D code before gc initialization?By 'main', the docs mean _Dmain, which is what you write as "main". The order is: gc_init static ctors unittests _Dmain etc
 Apr 26 2008








 
 
 
 Christopher Wright <dhasenan gmail.com>