Comment #2 by andrej.mitrovich — 2013-04-22T03:02:03Z
(In reply to comment #0)
> Today, I think this is not reasonable limitation.
Yes, especially since this:
auto func1(T)(T value) { return value; }
really translates into this:
template func1(T)
{
auto func1(T value) { return value; }
}
At least that's what I remember. Thanks for working on this.
Comment #3 by github-bugzilla — 2013-04-22T03:38:51Z
Comment #4 by bearophile_hugs — 2013-04-22T10:24:06Z
In the changelog this should be underlined as a significant improvement of D. It's useful for unittests, to not pollute the module scope with template names that are used only inside the unittest.
Comment #5 by andrej.mitrovich — 2013-04-22T10:57:37Z
(In reply to comment #4)
> In the changelog this should be underlined as a significant improvement of D.
> It's useful for unittests, to not pollute the module scope with template names
> that are used only inside the unittest.
Yes. I've added it to the pending pull request.