D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3708 - ImportExpression should be clear on how file is found
Summary: ImportExpression should be clear on how file is found
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: Other All
: P2 normal
Assignee: No Owner
URL: http://digitalmars.com/d/2.0/expressi...
Keywords: spec
Depends on:
Blocks:
 
Reported: 2010-01-14 23:44 UTC by Jerry Quinn
Modified: 2015-06-09 01:27 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jerry Quinn 2010-01-14 23:44:11 UTC
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 Leandro Lucarella 2010-01-15 07:16:19 UTC
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 Walter Bright 2012-01-23 01:58:25 UTC
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.