lua-users home
lua-l archive

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


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.