On Tue, 18 Oct 2011 13:23:02 +0200, 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?


The module name is determined by the module declaration or implicitly by the basename of the file.
Module collisions are already detected based on the module name.
You can actually import two identical modules through different files/symlinks as long
as they don't have a module declaration.
This does not differ from the current behavior.

martin

Reply via email to