View mode: basic / threaded / horizontal-split · Log in · Help
November 18, 2005
combination attributes of both protected and package
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
Re: combination attributes of both protected and package
"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
Re: combination attributes of both protected and package
"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?
Top | Discussion index | About this forum | D home