Program size, linking matter, and static this()

Nick Sabalausky a at a.a
Fri Dec 16 11:14:56 PST 2011


Interesting stuff.

"Andrei Alexandrescu" <SeeWebsiteForEmail at erdani.org> wrote in message 
news:jcg2lu$17p2$1 at digitalmars.com...
>
> We can use lazy initialization instead of compulsively initializing 
> library internals. I think this is often a worthy thing to do in any case 
> (dynamic libraries etc) because it only does work if and when work needs 
> to be done at the small cost of a check upon each use.
>

That also has the benefit of reducing the risk of dreaded circular ctor 
dependency problems.




More information about the Digitalmars-d mailing list