[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: New array type? (was: 'table' as fallback for tables)
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 6 Jul 2016 08:25:36 +0200
On Wed, Jul 6, 2016 at 12:52 AM, Hisham <h@hisham.hm> wrote:
> Amusingly, I was told off-list by another Lua user (who's more
> experienced than me) that after reading my post they went "oh-oh" and
> double-checked their own code as well. :)
My apologies for using you as 'the surprised expert user' example ;)
So yes, unpack/pack ought to be symmetrical. It would be cool if #
reported the actual size (since we can make # return anything
sensible, I don't think there's a universal definition). Once that's
in place then the `n` field becomes an implementation detail. The
table functions start respecting this, and nirvana is achieved.