Object Oriented Programming with D Language. Private access specifier.
Max Samukha
samukha at voliacable.com.removethis
Thu Aug 21 08:53:13 PDT 2008
On Thu, 21 Aug 2008 10:48:32 -0400, "Jarrett Billingsley"
<kb3ctd2 at yahoo.com> wrote:
>"Max Samukha" <samukha at voliacable.com.removethis> wrote in message
>news:9sjqa4t9eta17lpab2jrnifpigsdhgm1t6 at 4ax.com...
>>
>> It would be even more useful if members with package accesibility were
>> accessible not only from the same package but also from its
>> subpackages.
>>
>> Imagine there is a function, data structure or whatever that is used
>> throughout a complex package containing nested packages but is not
>> intended to be accessible by users of this package. Now I have to
>> declare such a function/structure public. 'package' does not help me
>> here.
>
>I've always felt the same way. I end up designing all my libraries one
>level deep because of this "feature." It'd be nice if I could group modules
>into subpackages which operate as a unit, which also increases privacy
>granularity (that is, "package" symbols in one part of the library are not
>visible everywhere).
>
We need transitive 'package' :)
More information about the Digitalmars-d
mailing list