Feature request - simpler constructors

Oskar Linde oskar.lindeREM at OVEgmail.com
Thu Sep 20 08:28:36 PDT 2007


Matti Niemenmaa wrote:
> Janice Caron wrote:
>> Please could we let
>>
>>  this(auto n) {}
>>  T n;
>>
>> be syntactic sugar for
>>
>>  this(T n)
>>  {
>>      this.n = n;
>>  }
>>  T n;

> votes = votes.max;

votes++; // Oh noez!

-- 
Oskar



More information about the Digitalmars-d mailing list