visibility vs. accessibility of protected symbols
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sun Feb 12 11:11:17 PST 2012
Agreed with David. I find these things a pointless waste of time:
module a;
private {
struct foo {
}
}
module b;
void foo() { }
import a;
import b;
void main() {
foo();
}
main.d(7): Error: a.foo at a.d(3) conflicts with b.foo at b.d(2)
main.d(7): Error: structliteral has no effect in expression (foo())
One of those cases exists in Phobos somewhere, where a private type is
declared with the same name as an unrelated public function in some
other module. I can't recall which module it is though.
More information about the Digitalmars-d
mailing list