Feature request - simpler constructors

Steven Schveighoffer schveiguy at yahoo.com
Thu Sep 20 04:01:24 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;

Good idea.
vote = vote + 1; // just realized, vote could be a property :)

-Steve 





More information about the Digitalmars-d mailing list