Modules: foo/bar.d: ----- module foo.bar; import foo.std.exception; import std.range; ----- foo/std/exception.d: ----- module foo.std.exception; ----- Compiling from path where the "foo" folder is located in: $ dmd -main foo\bar.d > $ rdmd -main foo\bar.d C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\conv.d(26): Error: module foo.std.exception from file foo\std\exception.d must be imported as module 'foo.std.exception'
I can see the problem, RDMD automatically adds the foo folder to the import list for some bizarre reason..: $ rdmd --chatty -main foo\bar.d ^"dmd^" ^"-main^" ^"-v^" ^"-o-^" ^"foo\bar.d^" ^"-Ifoo^" I should not add that import switch.
(In reply to comment #1) > I can see the problem, RDMD automatically adds the foo folder to the import > list for some bizarre reason..: > > $ rdmd --chatty -main foo\bar.d > ^"dmd^" ^"-main^" ^"-v^" ^"-o-^" ^"foo\bar.d^" ^"-Ifoo^" > > I should not add that import switch. *It*
Arguably beyond the scope of what rdmd is supposed to be for