lua-users home
lua-l archive

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


On Thu, Apr 05, 2012 at 06:59:41PM +0200, tjericke@indel.ch wrote:
> 
> 
> On Thu, Apr 05, 2012 at 17:13+0100 rjek@rjek.com wrote:
> 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}]
> How about: t[{{1, 2}, {3, 4}}]

If you're content with this syntax, you'll be just as content, if not
more so, with t({1, 2}, {3, 4}).

B.