On 2011-12-27 22:53, Alex Rønne Petersen wrote:
On 27-12-2011 21:32, Jacob Carlborg wrote:
On 2011-12-27 05:25, Andrei Alexandrescu wrote:
https://github.com/D-Programming-Language/dmd/commit/675898721c04d0bf155a85abf986eae99c37c0dc




Andrei

Now that's very cool. Does it work for non-template arguments as well.


Nope. When passing such lambdas as regular arguments, there's no inference.

- Alex

Yeah, but does the new syntax work:

void foo (int delegate (int) dg);

foo((int a) => 3);

--
/Jacob Carlborg

Reply via email to