https://issues.dlang.org/show_bug.cgi?id=12629

Andrej Mitrovic <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Andrej Mitrovic <[email protected]> ---
Only thing to be careful about is the implementation. IOW in this case:

// unrelated file or module
a/c/foo.d:

// actual module we want
some/other/a/c/foo.d
    module a.c.foo;

a/b/bar.d:
    module a.b.bar;
    import a.c.foo;

If you run:
    $ cd a/b
    $ dmd -Isome/other bar.d

The explicit import path should be favored over the implicit one. IOW, only if
the module hasn't been found in existing imports should the compiler try and
search in paths based on the module name.

--

Reply via email to