Thread overview
combination attributes of both protected and package
Nov 18, 2005
Shawn Liu
Nov 18, 2005
John C
Nov 19, 2005
Shawn Liu
November 18, 2005
Is there a way to provide a combination attributes of both protected and
package?
Need access to derived classes and other modules in the same package. When
declare as "package protected", the former is just ignored.

I searched the NG and saw some trace, but there seem no conclusion yet.


November 18, 2005
"Shawn Liu" <Shawn_member@pathlink.com> wrote in message news:dlk5sm$nmi$1@digitaldaemon.com...
> Is there a way to provide a combination attributes of both protected and
> package?
> Need access to derived classes and other modules in the same package. When
> declare as "package protected", the former is just ignored.

I needed this too, but for a different reason: to allow virtual behaviour on internal (package) class methods. But D doesn't support it. Combining certain protection attributes would be nice to have.

Protection seems to be a work in progress anyway.

>
> I searched the NG and saw some trace, but there seem no conclusion yet.
>
> 


November 19, 2005
"Shawn Liu" <Shawn_member@pathlink.com> wrote:dlk5sm$nmi$1@digitaldaemon.com...
> Is there a way to provide a combination attributes of both protected and
> package?
> Need access to derived classes and other modules in the same package. When
> declare as "package protected", the former is just ignored.
>
> I searched the NG and saw some trace, but there seem no conclusion yet.
>

This post is redirected from d.learn. I think somebody else requires this capability too.

Any suggestion?