[Issue 9853] The order of static and shared on module constructors matters when it shouldn't
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 1 19:19:27 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9853
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2013-04-01 19:19:26 PDT ---
This is by design.
http://dlang.org/class.html#StaticConstructor
> The **static** in the static constructor declaration is not an attribute,
> it must appear immediately before the this:
>
> class Foo {
> static this() { ... } // a static constructor
> static private this() { ... } // not a static constructor
> static {
> this() { ... } // not a static constructor
> }
> static:
> this() { ... } // not a static constructor
> }
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list