April 27, 2014 Re: Explicit default constructor for structs | ||||
---|---|---|---|---|
| ||||
Posted in reply to monarch_dodra | 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.
|
Copyright © 1999-2021 by the D Language Foundation