digitalmars.D - Is private import broken as well?
- Trass3r (23/23) Jul 13 2011 We all know that public, selective and static imports are broken
- Andrej Mitrovic (1/1) Jul 13 2011 See: http://d.puremagic.com/issues/show_bug.cgi?id=6180
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
}
Jul 13 2011
See: http://d.puremagic.com/issues/show_bug.cgi?id=6180
Jul 13 2011








Andrej Mitrovic <andrej.mitrovich gmail.com>