Feature request - simpler constructors

Matti Niemenmaa see_signature at for.real.address
Thu Sep 20 06:25:55 PDT 2007


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

Has nobody thought of this before? It's so obvious, and such a good idea.

votes = votes.max;

-- 
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi



More information about the Digitalmars-d mailing list