Accessing a function within an object's superclass from the outside
Meta via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jan 14 18:32:29 PST 2017
On Saturday, 14 January 2017 at 23:31:53 UTC, Adam D. Ruppe wrote:
> 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
Is this documented anywhere? I had no idea this was a feature.
More information about the Digitalmars-d-learn
mailing list