package & protected?

Manu turkeyman at gmail.com
Mon Oct 21 07:49:18 UTC 2024


So, a great many class members tend to be `protected`... that's just how
classes are.
We also avoid `friend` in D with `package`, which I find to often be quite
useful.

The trouble is... in a high number of cases where I want to make something
`package`, it ALSO should be `protected`, but these 2 are mutually
exclusive.

This is a problem. We need a way to express both... what's the story here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20241021/42f32572/attachment-0001.htm>


More information about the Digitalmars-d mailing list