www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Is private import broken as well?

reply Trass3r <un known.com> writes:
We all know that public, selective and static imports are broken  
Also private imports are broken in some special cases:  
http://d.puremagic.com/issues/show_bug.cgi?id=313 &  

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
Jul 13 2011
parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
See: http://d.puremagic.com/issues/show_bug.cgi?id=6180
Jul 13 2011