Cannot import module that has name of a package

Hennrich Blöbaum hennrich.bloebaum at gmx.de
Thu Mar 22 07:33:17 PDT 2007


Hi!

Look at this:

<main.d>
import test.foo;
import test.foo.bar;

<test/foo.d>
module test.foo;

<test/foo/bar.d>
module test.foo.bar;


This gives error:
test/foo.d: module test.foo module and package have the same name


Is there any reason why this is blocked?


Hennrich



More information about the Digitalmars-d mailing list