Issue 24794 - protected AND package?
Summary: protected AND package?
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-04 13:50 UTC by Manu
Modified: 2024-10-04 13:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Manu 2024-10-04 13:50:15 UTC
I need to make some members `package`, but they are `protected` and need to stay that way.
It seems a problem that protected and package are mutually exclusive...
What are we supposed to do?

In practise, most base class members are `protected`... but what's the point of package if not to make them accessible to some related functionality? We can't sacrifice the derived class access to those members :/