Nicer syntax for constructors

Trailzz email at example.com
Sun Nov 18 19:52:48 UTC 2018


On Sunday, 18 November 2018 at 19:47:26 UTC, Jacob Carlborg wrote:
>     this(int a, int b)
>     {
>         static foreach (name ; 
> ParameterIdentifierTuple!(__ctor))
>             __traits(getMember, this, name) = mixin(name);
>     }
> }

This is still very clunky and hard to understand.


More information about the Digitalmars-d mailing list