Static constructors guaranteed to run?
Tofu Ninja via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jun 29 18:38:09 PDT 2015
On Monday, 29 June 2015 at 11:36:42 UTC, ketmar wrote:
> it doesn't, afair, but it's quite natural. if user type was
> throwed out as unused, it would be very strange to insist on
> keeping it's initialization code.
Personally I would be kinda pissed if the compiler did this, I
expect the static ctor to run, even if I don't use the type.
More information about the Digitalmars-d-learn
mailing list