I think the best thing to do would be to maintain a module[path] mapping, where more then one path can map to a single module. The by-path import declarations would add items to the mapping and the compiler would extract the list of modules from it.
On Tue, Oct 18, 2011 at 3:23 PM, Jacob Carlborg <[email protected]> wrote: > On 2011-10-18 09:38, Martin Nowak wrote: >> >> http://prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DIPs/DIP14 > > What happens if you import a the same file twice using different paths, i.e. > relative and absolute path? > > Will the imported files need a module declaration or will the compiler just > care about the path? > > -- > /Jacob Carlborg >
