Overloading/Inheritance issue

Walter Bright newshound1 at digitalmars.com
Tue Aug 7 20:23:46 PDT 2007


Bill Baxter wrote:
> So does that mean you can't do non-virtual overloads in D?

Right, you cannot.

> I.e. have a situation where:
>                 x.foo()
> and
>     (cast(Base)x).foo()
> call different member functions?
> 
> If not, probably it's good riddance, but I do vaguely recall having a 
> use for it once in C++.

Good riddance <g>.



More information about the Digitalmars-d mailing list