[Issue 16583] Static module ctor semantic proposition

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Nov 1 02:10:26 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16583

--- Comment #2 from b2.temp at gmx.com ---
(In reply to Martin Nowak from comment #1)
> That's doesn't make sense b/c using Type could depend on the sth. being
> initialized first.
> What we could try is to teach the compiler to recognize a few more
> standalone constructors (that simply initialize plain data fields).

I don't really mind but I'd say that your argument is fallacious. Why ? Because
"Type" can have its own static ctor.

--


More information about the Digitalmars-d-bugs mailing list