Thread overview |
---|
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 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Shawn Liu | "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 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Shawn Liu | "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? |
Copyright © 1999-2021 by the D Language Foundation