visibility vs. accessibility of protected symbols

Andrej Mitrovic andrej.mitrovich at
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() {

main.d(7): Error: at a.d(3) conflicts with 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