Static constructors guaranteed to run?

Tofu Ninja via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 26 15:00:51 PDT 2015


Are static constructors guaranteed to run if the module is 
imported? Also are static constructors in templated types 
guaranteed to run for every instantiation? Even if the 
instantiation is never actually used outside of compile time 
code, like in an alias or in a UDA?


More information about the Digitalmars-d-learn mailing list