Overloading/Inheritance issue

Walter Bright newshound1 at digitalmars.com
Fri Aug 3 21:51:59 PDT 2007


Aarti_pl wrote:
> ... and it's even not consistent with one of D design rules:
> 
> "If something looks similar as in C++, it should behave similar to C++."
> 
> I think that breaking this rule is main source of confusion here. In my 
> opinion it would be much better for D to implement inheritance in a way 
> similar to other C-like languages.

It does behave, in this instance, just like C++. Steve is asking for the 
Java behavior.



More information about the Digitalmars-d mailing list