named import are always public

Namespace rswhite4 at googlemail.com
Tue Sep 10 01:22:17 PDT 2013


I have already found an old bug report for this, but I do not 
understand why it has still not been solved. Can someone explain 
that to me?

Example:

a.d:
----
module a;

private import std.stdio : writeln;
----

b.d:
----
import a;

void main() {
	writeln("This is wrong.");
}
----

WTF? writeln should be private.
I don't like this. :P


More information about the Digitalmars-d-learn mailing list