"Andrei Alexandrescu" <seewebsiteforem...@erdani.org> wrote in message news:heuuk9$1nf...@digitalmars.com... > 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? > > > Andrei
I could swear that I've recently been using a language that does exactly that (with 'c' falling in the same category as 'a'), and have been very happy with how it handles that, but I can't remember what language it was (it was probably Haxe, maybe C#...I guess it wasn't D ;) ). So yea, I'm all for it (with 'c' acting like 'a').