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

bauss jj_1337 at live.dk
Sat Apr 7 20:46:39 UTC 2018


On Saturday, 7 April 2018 at 20:34:57 UTC, user1234 wrote:
> On Saturday, 7 April 2018 at 20:14:49 UTC, bauss wrote:
>> jesus that became a long title.
>>
>> Anyway as the title says, is it a bug that a parent class that 
>> access its own private members from derived classes gets 
>> deprecation warning?
>
> If the import is selective no. (`import foo : Foo;`)
> If the import is for the whole module i'd say yes. (`import 
> foo;`)

What do you mean?

The problem is that "Foo" cannot access "_baz" without 
deperecation warning, but "_baz" is a part of "Foo".


More information about the Digitalmars-d mailing list