Inheritance of purity
Timon Gehr
timon.gehr at gmx.ch
Fri Feb 17 11:37:16 PST 2012
On Friday, 17 February 2012 at 16:17:23 UTC, Andrei Alexandrescu
wrote:
> Agreed. Timon, could you please submit to bugzilla?
>
Filed as an enhancement:
http://d.puremagic.com/issues/show_bug.cgi?id=7534
> BTW I referred to the converse problem:
>
> class C {
> void foo() {}
> void foo() const {}
> }
>
> class D : C {
> void foo() const {} // should only override the const overload
> }
>
>
> Andrei
>
OK. Note that alias C.foo foo; inside Ds body is required in
order to make the code compile by inheriting the overload.
More information about the Digitalmars-d
mailing list