lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Apr 05, 2012 at 03:53:26PM +0200, tjericke@indel.ch wrote:
> Now of course the t[{_,_}] syntax is not as nice as t[_,_] but it does the trick. Unfortunately it is not possible to make a solution by syntactic sugar as the syntax t{_,_} already translates to t({_,_}). 

It also limits the use: what if you wanted to pass one or more tables to
the handler?

ie, t[{1, 2}, {3, 4}]

B.