[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.2 - small enhancement for table.unpack
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 29 Jun 2011 11:26:02 +0200
On Wed, Jun 29, 2011 at 11:20 AM, Patrick Rapin <email@example.com> wrote:
> The function table.pack could also set a metatable with then __len
> metamethod returning the true length, since table.unpack already obey
> __len metamethod.
That is a most elegant solution, I think.