Voldemort declarations inside structs with ctor initialization
monarch_dodra via Digitalmars-d
digitalmars-d at puremagic.com
Wed May 28 10:54:05 PDT 2014
On Tuesday, 27 May 2014 at 14:55:33 UTC, Luís Marques wrote:
> BTW 2, is `this(int = 0)' the best workaround (still?) for the
> fact that I want the ctor to be called, even if it doesn't
> really require any parameter?
AFAIK, no, since "Foo()" will actually do nothing. "this(Arg =
dummy)" is actually useless, unless you manually call "__ctor",
so I strongly advise against that.
More information about the Digitalmars-d
mailing list