www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24794] New: protected AND package?

https://issues.dlang.org/show_bug.cgi?id=24794

          Issue ID: 24794
           Summary: protected AND package?
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: turkeyman gmail.com

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 :/

--
Oct 04