[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: table.pack/unpack (was: Lua 5.2 Length Operator)
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 17 Apr 2012 08:54:15 +0200
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.