lua-users home
lua-l archive

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


- "metamethods" __pairs & __ipairs
- tables and strings respect __len metamethod
Bad news IMO :(

----- Original Message ----- From: Duncan Cross To: Lua list Sent: Tuesday, September 22, 2009 5:55 PM
Subject: Re: length operator # for tables with metatables

This has been recognised as an oversight, and is expected to change in
5.2 - Roberto posted a list of things early last year that had already
been implemented for it [1] that included:

- tables and strings respect __len metamethod

[1] http://lua-users.org/lists/lua-l/2008-02/msg00720.html

-Duncan