Accessing a function within an object's superclass from the outside
David Zhang via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jan 14 14:38:15 PST 2017
On Saturday, 14 January 2017 at 22:17:23 UTC, ketmar wrote:
> class ClassB: ClassA {
> alias fun = super.fun;
> override void fun(uint a) {}
> }
I tried that, but it seems to think I mean to override
super.fun(uint) instead of super.fun(uint, float).
Looking at my code again, one of them is templated with a range
interface. I think that might be the problem, though I can't
figure out how to fix it. Wrapping the alias in a template block
doesn't seem to do it.
More information about the Digitalmars-d-learn
mailing list