Bug 3708 – ImportExpression should be clear on how file is found
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-01-14T23:44:00Z
Last change time
2015-06-09T01:27:13Z
Keywords
spec
Assigned to
nobody
Creator
jlquinn
Comments
Comment #0 by jlquinn — 2010-01-14T23:44:11Z
There is no information on how the file in an import expression is located. The simplest would be to use the module load path.
Comment #1 by leandro.lucarella — 2010-01-15T07:16:19Z
The string import expressions are even more obscure. Current implementation doesn't even allow string importing files in a directory, this is not stated anywhere in the specs, but I think it should, otherwise is very hard to write portable code that uses string imports.
I think the restriction should be removed too, see bug 3420.
Comment #2 by bugzilla — 2012-01-23T01:58:25Z
Where the files are looked for is an implementation defined detail, and does not belong in the language specification. On the dmd page http://dlang.org/dmd-windows.html under the -J switch is the lookup detail.