Discussion Thread: DIP 1043--Shortened Method Syntax--Final Review

ag0aep6g anonymous at example.com
Fri Jun 17 05:23:44 UTC 2022


On 16.06.22 20:56, Paul Backus wrote:
>      this(typeof(this.tupleof) params)
>      {
>          static foreach (i; 0 .. this.tupleof.length)
>          {
>              this.tupleof[i] = params[i];
>          }
>      }

You don't need the loop:

     this(typeof(this.tupleof) params)
     {
         this.tupleof = params; /* works */
     }


More information about the Digitalmars-d mailing list