Jonathan M Davis <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #5 from Jonathan M Davis <> 2012-02-26 22:43:51 
PST ---
Really? I'm constantly annoyed by that you can't overload nested functions when
writing unit tests. I frequently need to overload functions in unittest blocks
and have to play games to get around the fact that I can't. The worst is when
you use foreach and TypeTuple. You can't just do something like

foreach(T; TypeTuple!(string, wstring, dstring))
    void test(T actual, T expected, ...)


because then every subsequent definition of the nested function conflicts with
the rest. You're force to use string mixins simply to give each overload of the
nested function a unique name. It's an extra complication that really shouldn't
be necessary IMHO.

If anything, I'd argue that the lack of ability to overload nested functions is
an unnecassary inconsistency in the language.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to