Anonymous classes should pass through super ctors
BCS
ao at pathlink.com
Mon Aug 18 11:00:44 PDT 2008
Reply to Bruno,
> I don't see how this could be dangerous in any way whatsoever, if the
> ctor inheritance rules followed the same rules as method inheritance
> rules:
> * if you don't override or overload any ctor in the overload set, then
> the whole overload set is available in the child class.
> * if you do override or overload any ctor, well... follow the same
> rules
> as overriding/overloading a method.
There needs to be an easy way to forbid one, several or all base constructors.
And while were at it, it would be nice to add an auto constructor that is
added to all constrictors (kind of like member variable initialization in c#)
More information about the Digitalmars-d
mailing list