Thread overview | |||||
---|---|---|---|---|---|
|
April 23, 2014 [Issue 12629] Adjust search path according to module name | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12629 Adam Wilson <flyboynw@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |flyboynw@gmail.com -- |
April 24, 2014 [Issue 12629] Adjust search path according to module name | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12629 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich@gmail.com --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> --- 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. -- |
December 17, 2022 [Issue 12629] Adjust search path according to module name | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12629 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P4 -- |
Copyright © 1999-2021 by the D Language Foundation