No subject
Sun Jan 14 16:13:07 PST 2007
class B : A {
// This part is probably really, really broken,.. but the idea exists
const int DEF_Y = ParameterTypeTuple!( super.this )[ 1 ].init;
this( int x, int y = DEF_Y, int z ) { // Same parameter order
super( x, y );
...
}
}
This needs a lot more thought than I put into it, but if anything I'd just like to know why mid-list default arguments aren't supported. I'm sure the reason is probably trivial and I overlooked it. :)
Thanks,
Brian Byrne
More information about the Digitalmars-d-learn
mailing list