lua-users home
lua-l archive

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


Dirk,

> > Does pairs() have exclusive rights on calling __pairs()? (Obviously no).
>
> Should we extend that logic to __len, __add, __concat etc, or is there
> something special about __pairs?

Why not? E.g. __len could be placed on tables for forward compatibility and called explicitly in Lua 5.1 in some sort of an lpairs() iterator.

Best regards,

--
DoubleF