Is private import broken as well?

Trass3r un at known.com
Wed Jul 13 10:39:02 PDT 2011


We all know that public, selective and static imports are broken  
(http://d.puremagic.com/issues/show_bug.cgi?id=314)
Also private imports are broken in some special cases:  
http://d.puremagic.com/issues/show_bug.cgi?id=313 &  
http://d.puremagic.com/issues/show_bug.cgi?id=1161

But apart from that it seemed to work so far.

Yet this works perfectly:

module testb;
Bla foo()
{
	return Bla();
}

private struct Bla
{
	void arg() {}
}

module test;
import testb;

void main()
{
	foo().arg(); // I think this could be allowed
	auto b = Bla(); // but this really shouldn't
}


More information about the Digitalmars-d mailing list