Struct Constructor Lazy

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 12 06:55:10 PDT 2017


On Wednesday, 12 July 2017 at 11:18:08 UTC, Biotronic wrote:
> The traditional solution is static opCall:


That's bug city... the dummy argument is better, or a named 
static factory function.

Foo foo = Foo;
Foo foo = Foo();

those are different with static opCall. It also conflicts with 
constructors and non-static opCall.


More information about the Digitalmars-d-learn mailing list