[Issue 3492] Can't overload nested functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 26 14:52:18 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=3492


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-02-26 14:52:16 PST ---
Nested functions are a great feature, especially when experimenting with code
and when I need to do some quick filtering over e.g. hashes but need to access
some outer state. With nested functions I don't have to use global variables or
use ref parameters (I'm talking about non-static functions).

I've just tried using overloaded functions but failed and found this in
bugzilla. It's not a big issue, I can rename the functions.. but I'd like to
know the rationale for this limitation.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list