Feature request - simpler constructors (+ Tuple Syntax)
Xinok
xnknet at gmail.com
Thu Sep 20 15:59:31 PDT 2007
How about this?
this(this.a, this.b, this.c)
This clearly shows that you're initializing a variable in the object.
I don't like the use of auto here because:
this(auto a)
I read this as:
this(T)(T a)
Another idea I've had for a while is creating a list of members to
generate a tuple. Take for example:
obj.(a, b, c)
This would generate a tuple with members a, b, and c.
This same syntax could be applied here:
this(this.(a, b, c))
More information about the Digitalmars-d
mailing list