[Issue 10378] Local imports hide local symbols
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jan 19 13:53:04 PST 2016
https://issues.dlang.org/show_bug.cgi?id=10378
Ketmar Dark <ketmar at ketmar.no-ip.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ketmar at ketmar.no-ip.org
--- Comment #17 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
this will pollute module scope with imported symbols.
imagine that i have `mymodule.foo (float v)` function, and defined local `foo
(int v)` function. with your "hidden global import" whenever i'll import
"mymodule", it will add unexpected `foo` overload for the whole code.
also, it breaks "module importing orger doesn't matter" rule.
--
More information about the Digitalmars-d-bugs
mailing list