[Issue 17907] Can't automatically resolve to function with same name as module
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 20 22:04:19 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17907
Martin Nowak <code at dawg.eu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |code at dawg.eu
Resolution|--- |WONTFIX
--- Comment #2 from Martin Nowak <code at dawg.eu> ---
Yes, there is little chance to support functions, as the same symbol would need
to be resolved differently, e.g. in `.fun.fun` it's the module, but in `.fun()`
it's supposed to be the function.
While the type resolution seems inconsistent, it is a common Java idiom to name
source files after the main class/type, and it's widely used in (older) D
libraries.
--
More information about the Digitalmars-d-bugs
mailing list