[Issue 12578] Allow local function overloading

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 15 01:59:41 PDT 2014


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

--- Comment #4 from Jonathan M Davis <jmdavisProg at gmx.com> ---
I frequently need helper functions in unittest blocks, and the lack of ability
to overload them can be quite annoying. So, in my experience, the lack of
visibility outside of the local scope hasn't really stopped the need for
overloading - rather the lack of overloading just ends up forcing you to move
the nested functions into an outer scope where they don't belong in order to
get the overloading to work. And while there may be cases where forward
references might be needed, I don't recall any cases where that's been a
problem for me.

--


More information about the Digitalmars-d-bugs mailing list