On 3/7/13, Robert <[email protected]> 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
