lua-users home
lua-l archive

Re: Lua 5.2 - small enhancement for table.unpack

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


On Wed, Jun 29, 2011 at 11:20 AM, Patrick Rapin <toupie300@gmail.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.
steve d.

AltStyle によって変換されたページ (->オリジナル) /