Named constructors
JN
666total at wp.pl
Wed Jan 9 20:54:48 UTC 2019
On Wednesday, 9 January 2019 at 10:02:12 UTC, bauss wrote:
>
> I like this approach to it and you're entirely correct.
>
> It would be nice with support for this in the language without
> having to create factory methods.
>
> Basically something like the following could be lowered to your
> code.
I was going to say that this post will be mostly ignored and
people will present some template magic to partially implement
such feature (just add few imports and some boilerplate code),
but I guess I got beaten to it :)
More information about the Digitalmars-d
mailing list