visibility deprecation with last dmd compiler

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 3 07:20:06 PDT 2017


On Wednesday, 3 May 2017 at 14:14:16 UTC, jacob wrote:
> But how can I use private fields from descedant class?

You don't, the whole point of private is that they aren't used 
from outside the module.

Try `protected` instead, it is similar to private, but still 
allows use from a subclass.


More information about the Digitalmars-d-learn mailing list