Feature request - simpler constructors
Jascha Wetzel
firstname at mainia.de
Fri Sep 21 04:52:44 PDT 2007
Walter Bright wrote:
> Janice Caron wrote:
>> Please could we let
>
> I think it's a good idea, but I think using the function signature for
> it probably is not the best idea (as the function signature is for the
> interface, not the internals).
maybe macros could sort this one out. they'd need variadic or tuple
parameters:
macro thisInit(T...)
{
foreach ( t; T )
this.t = t;
}
this(int a, float b)
{
thisInit(a,b);
}
...or similar.
More information about the Digitalmars-d
mailing list