Derek Parnell wrote: > But currently it doesn't so does that mean currently DMD has this as a > bug in it? > > -----mod.d---- > private int foo; > > ----test.d---- > import foo; > > int x = foo.x; // access to a private member is allowed but it shouldn't > be!!! Yes, it's a bug.