[Issue 12578] Allow local function overloading
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 15 00:00:07 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12578
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
The reasons for this behavior are twofold:
1. Local functions aren't visible outside of their scope. Their use is pretty
limited, and so there isn't much of any benefit to overloadability.
2. Forward references aren't allowed in local scope, meaning any use of
overloading would be fairly restricted anyway.
It's not impossible to overcome this, it just seems pointless.
--
More information about the Digitalmars-d-bugs
mailing list