[Issue 15086] import doesn't verify module declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 16 00:52:06 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=15086

--- Comment #27 from Jonathan Marler <johnnymarler at gmail.com> ---
Ok.

Walter/Andrei have decided they don't want to drop support to allow an import
to match the filename without matching the module name.

Luckily, we have found a way to detect when order invariance is violated while
still supporting existing semantics.

So the fix to this issue is to change the spec.  An import name may represent a
module name, or a filename, whose module name may not match the file it is
contained in.  The solution for the order invariance problem is to detect and
assert an error when a module is imported with different names.

--


More information about the Digitalmars-d-bugs mailing list