[Issue 1585] Imports should be searched relative to importing file

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 16 11:13:47 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1585


shro8822 at vandals.uidaho.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shro8822 at vandals.uidaho.edu
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




------- Comment #2 from shro8822 at vandals.uidaho.edu  2007-10-16 13:13 -------
I can't find the thread but a number of people have expressed interest in this
being added. The simplest possible form would be of grate value.

if trying to resolve an import fails, check to see if the initial module has:

module package.mod;

if so check if package is the suffix of the module's path and if so retry ALL
imports with that as the "current directory". For simplicity's sake, this could
be disallowed outside the initial module.

It should be noted that this is not a language issue but a compiler issue.

I'm reopening this as an Enhancement because it seem people (my self included)
thing that the way it is designed could be improved


-- 



More information about the Digitalmars-d-bugs mailing list