DMD 1.025 and 2.009 releases
baaaam
nospam at empty.com
Sun Jan 13 06:00:04 PST 2008
Moritz Warning Wrote:
> On Sun, 13 Jan 2008 06:17:25 -0500, baaaam wrote:
> > "Both invariant and const are transitive, .." -> i thought this is not
> > the case ? wasnt there too many problems with it ? i am confused and i
> > guess i am not the only one.
>
> "Both invariant and const are transitive, .." - that's right (for D2.00x).
>
> > this doesnt prevent anything from accessing that value of i. I testet it
> > with dmd 2.009.
> >
> > struct Foo{
> > private enum i = 3;
> > }
> >
> > every other piece of code can access i through "Foo.i" .
> private members are always accessible on the same module level.
> If you have two modules (= two files), they can't access each others
> private members.
right, thats exactly what i did and i was able to access that private member from another module. thats why i wondered, sounds like a bug huh ?
More information about the Digitalmars-d-announce
mailing list