On 18/07/2013 18:24, Violeta Georgieva wrote: > 2013/7/18 Mark Thomas wrote: >> >> On 18/07/2013 08:00, Violeta Georgieva wrote: >>> Hi, >>> >>> Let's have a lambda expression: >>> >>> x->y->x-y >>> >>> Let's now assign it and invoke it indirectly: >>> >>> f = x->y->x-y; f(2)(1) >> >> Several problems here. >> >> 1. The grammar didn't support functions having multiple sets of > parameters. >> >> 2. The lambda expression handling in AstFunction only handled single >> parameters sets. >> >> 3. The incMethodParameterIndex() can't be used in this case so an >> alternative solution is required to the problem that addressed. >> >> All of these have been fixed in trunk. There is some more clean-up that >> can now be done. >> >> I look forward to your next brain teaser :) >> > > ;) > > If I modify the example above like this > > f = ()->y->2-y; f()(1)
Thanks for all the testing. I'll convert all the the lambda expression tests to their functional versions and make sure they all pass. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org