lua-users home
lua-l archive

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


2016-07-25 13:02 GMT+02:00 steve donovan <steve.j.donovan@gmail.com>:

> Not suggesting this as any kind of canonical solution, but it hides
> that .n which annoys people so much.

Note that .n appears _only_ in the return value of table.pack, and
no other Lua function uses it. It is there so that the construction

   local arg = table.pack(...)

is all you need to get a Lua 4.0 program that depends on arg
all around the code to work in later versions of Lua.

If it really annoys people so much, they can put in a simple

   whatever_you_prefer, arg.n = arg.n