lua-users home
lua-l archive

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


On Thu, 2006-01-12 at 15:06 -0200, Roberto Ierusalimschy wrote:
> > 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).

Right. This is quite fair.

> (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.)

Does this mean you'll consider adding __len lookups for tables before
release?

(Please say 'yes' :-)

D.

-- 
Daniel Silverstone                         http://www.digital-scurf.org/
PGP mail accepted and encouraged.            Key Id: 2BC8 4016 2068 7895