lua-users home
lua-l archive

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


On Tue, Apr 17, 2012 at 8:52 AM, steve donovan
<steve.j.donovan@gmail.com> wrote:
> It also wanders around, from global to table, and is the most common
> fix-up I need to make when moving code to 5.2

My apologies, not enough tea yet.  It's unpack that behaves like that.

table.pack/unpack is nicely symmetrical (except for the gotcha where
you have to tell unpack explicitly how many items)

steve d.