Inheritance of purity
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sat Feb 25 12:20:49 PST 2012
On 2/25/12 11:53 AM, deadalnix wrote:
> class A {
> void fun() const { ... }
> }
>
> class B : A {
> override void fun() { ... }
> }
>
> Now I change the class A to become :
>
> class A {
> void fun() const { ... }
> void fun() { ... }
> }
>
> And suddenly, the override doesn't override the same thing anymore.
> Which is unnacceptable.
I agree that that's a problem.
Andrei
More information about the Digitalmars-d
mailing list