lua-users home
lua-l archive

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


Am 01.07.2016 um 09:04 schröbte steve donovan:

Hence, make __index point to table. This code should behave exactly as
Hisham expects:

local t = table.pack(10,nil,'hello')
foo(t:unpack())

I'm not sure what Hisham expects, but I think it would be awkward if the OO syntax only worked on the arrays returned by `table.pack()` ...


steve d.


Philipp