[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: length operator # for tables with metatables
- From: "GrayFace" <sergroj@...>
- Date: Tue, 22 Sep 2009 20:18:57 +0700
- "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