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

Nick Treleaven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Nick Treleaven <[email protected]> ---
> alias add1(T1,T2) = (T1 a, T2 b)       => a+b;
> int   add2(T1,T2)   (T1 a, T2 b) { return a+b; }

I think this should be changed to an enhancement, because add1 is a function
literal template, whereas add2 is a function template. A function literal is a
pointer, a function is not.

--

Reply via email to