Is it a bug that a parent class that access its own private members from derived classes gets deprecation warning?

Timon Gehr timon.gehr at gmx.ch
Sun Apr 8 15:27:23 UTC 2018


On 08.04.2018 16:36, Timon Gehr wrote:
> On 08.04.2018 15:00, bauss wrote:
>>
>> It's perfectly normal in other languages that supports classes to 
>> access private members of parent's as long as you're within the 
>> parent's encapsulation.
> 
> That is not true. Use 'protected'.

Actually, I misunderstood your sentence.
This is definitely a bug.


More information about the Digitalmars-d mailing list