package & protected?

ryuukk_ ryuukk.dev at gmail.com
Mon Oct 21 08:01:42 UTC 2024


On Monday, 21 October 2024 at 07:49:18 UTC, Manu wrote:
> 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.

Sounds like a design issue on your end

If it is hidden, it doesn't need to be abstracted

You don't need OOP



More information about the Digitalmars-d mailing list