[Issue 9664] Make directory in import path like "a.b.c" a properly supported feature
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 6 13:18:43 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=9664
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #5 from Nick Treleaven <nick at geany.org> ---
> there are times where you end up having a directory containing a single
> directory containing a single directory, ..., just because of the module path
This is a valid reason, but if we want to support this I think it needs clear
identifying syntax, something like `import "a.b.c".d` (although this doesn't
work for fully qualifying symbols in code). Adding more module location
ambiguity harms understandability (even with errors on conflicts), and this
situation seems quite niche. I think it should be an error for a package
directory name not to be a valid single identifier. Suggest we close as
WONTFIX.
--
More information about the Digitalmars-d-bugs
mailing list