Accessing a function within an object's superclass from the outside

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jan 14 15:31:53 PST 2017


On Saturday, 14 January 2017 at 21:55:27 UTC, David  Zhang wrote:
> I seem to remember something about using aliases to fix this, 
> but I can't find anything about it either way.

So you can alias the names together to merge the overload sets, 
or at the call site, you can also specify which class's version 
you want with a dot:

cb.ClassA.fun(a, b); // compiles, specifically calls the ClassA 
method


More information about the Digitalmars-d-learn mailing list