lua-users home
lua-l archive

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


> there is still the question of the orthogonality and ability to
> implement __len on pure-lua objects.

As a general rule, Lua does not allow the redefinition of operators for
cases already defined in the language (e.g., add for numbers, concat for
strings, call for functions).

(On the other hand, we do understand that tables may have a different
status, as they are used to represent "all other types" in Lua.)

-- Roberto