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

Timon Gehr timon.gehr at gmx.ch
Fri Jun 17 18:37:19 UTC 2022


On 6/17/22 19:08, Salih Dincer wrote:
> On Thursday, 16 June 2022 at 18:56:57 UTC, Paul Backus wrote:
>> ```d
>> enum defaultClassConstructor = q{
>>  this(typeof(this.tupleof) params) {
>>    static foreach (i; 0..this.tupleof.length)
>>      this.tupleof[i] = params[i];
>> };
>> ```
> 
> Thanks, it looks very short...
> 
> SDB at 79

```d
enum defaultClassConstructor = q{
     this(typeof(this.tupleof) params){
         this.tupleof = params;
     }
};
```


More information about the Digitalmars-d mailing list