lua-users home
lua-l archive

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


Jean-Claude Wippler wrote:
> 
> So:
>     <N>(...)
> would be equivalent to:
>     {...}[<N>]

This will do it:

settagmethod(tag(0), "function", function(i,...) return arg[i] end)

but with the limitation I mentioned in my previous message.  Lua 4.1
should handle it without problems.

Ciao, ET.