Explicit default constructor for structs

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 27 13:44:15 PDT 2014


On Thursday, 10 April 2014 at 11:13:45 UTC, monarch_dodra wrote:
> Or a named function: auto foo = foo();
> Or a make template:  auto foo = make!Foo();
> Or a dummy argument: auto foo = Foo(Foo.dummy);
> Or ditto with a global dummy:  auto foo = Foo(dummyArg);
> Or use a static opCall:        auto foo = Foo();
> Or use an initialize function: Foo foo; foo.initialize();
>

And they are all broken in their own ways.


More information about the Digitalmars-d mailing list