Partially qualified module name lookup

Peter Alexander peter.alexander.au at gmail.com
Tue Feb 15 16:06:46 PST 2011


If I have two functions within nested modules:

A.B.foo()
A.C.foo()

Why can't I refer to them using

B.foo();
C.foo();

??

DMD just complains about undefined identifiers B and C.

The only way to refer to those is to fully qualify them:

A.B.foo();
A.C.foo();

Is this a bug?


More information about the Digitalmars-d mailing list