Andrei Alexandrescu Wrote:

> Walter and I just discussed the matter of inheriting constructors. Our 
> thought on the issue:
> 
> a) If a class doesn't define any constructors and adds no fields, 
> inherit constructors. Example:
> 
> class MyException : Exception {}
> 
> b) If a class defines at least one constructor, do not inherit constructors.
> 
> c) If a class doesn't define any constructors but does add at least a 
> non-static field -> undecided.
> 
> What do you think?

I thought it was a great idea 2 years ago:

http://www.digitalmars.com/d/archives/digitalmars/D/Inheriting_constructors_54088.html

Haven't changed my mind since then :-)

Reply via email to