import concerns (was Re: Historical language survey)

Walter Bright newshound at digitalmars.com
Sat Jul 8 11:37:26 PDT 2006


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.



More information about the Digitalmars-d mailing list