lua-users home
lua-l archive

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


On Jan 9, 2010, at 3:26 PM, Tom N Harris wrote:

> steve donovan wrote:
>> 
>> I am also excited about the __len metamethod.
> 
> __index can be a table instead of a function. Can __len be a number?

It seems to me that it could be, if it can't be now. That seems to fit well into the Lua idiom.