[Issue 15897] private base class method not seen through derived class

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Sep 11 20:20:26 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15897

--- Comment #19 from Martin Nowak <code at dawg.eu> ---
(In reply to Sophie from comment #18)
> Isn't this what the "protected" access modifier is for?

Yes, protected would be the choice for inheriting a function.

Here the question was whether a private member of a base class, should be
visible for derived classes in the base class' module. Not revealing that
private member, b/c the derived class is in a different module, is a semantic
change introduced by DIP22, hence the deprecation.

--


More information about the Digitalmars-d-bugs mailing list