having a folder containing dots in the import path

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Mar 7 18:02:22 PST 2013


On 3/7/13, Robert <jfanatiker at gmx.at> wrote:
> Hi guys!
>
> I just made the discovery that putting a D source file named "d" in a
> directory named "a.b.c" with a module declaration like:
>  module a.b.c.d; works as expected

This only works if you explicitly provide the module to DMD. If you
only pass the -I import switch to find the module it will not compile.

I wouldn't call this a feature, but rather a bug. It's probably a case
of a string compare returning true instead of actually verifying where
the module is. At best this could be a feature enhancement, but I
don't think it will fly.

There is also an opposite bug:
http://d.puremagic.com/issues/show_bug.cgi?id=9194


More information about the Digitalmars-d mailing list