[Issue 9977] Function local templates should be allowed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 22 03:02:05 PDT 2013


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


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> 2013-04-22 03:02:03 PDT ---
(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.

-- 
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