lua-users home
lua-l archive

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


>> Bit cheaper then a table, easy to implement, easy to understand and, like a table, grows linearly with each added element.  And, unlike a table, it can handle nils just fine.
>> 
>> I'd like to see it become part of baselib in 5.2.

> In the meantime:

> http://lua-users.org/lists/lua-l/2007-08/msg00359.html

Those all create a temporary table {...}. Alex proposes a next-function which traverses through N defined
elements of the calling function's stack (the arguments). That would be very cheap.

Seny