lua-users home
lua-l archive

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

Ignacio Burgueño <> writes:
> Even the common idiom of "t[#t + 1] = something" will have to take care
> of checking the type of #t before doing arithmetic with it.

No it won't.  It's perfectly fine for code to assume the that a length
is a number, and people will continue to do so.

If somebody abuses __len for weird uses, it's their responsibility to
deal with the fallout, not the language's; they'll just have to make
sure their funny object doesn't get used in a context where it will be
assumed to be a table or whatever.

You're worrying too much.


Youth, n. The Period of Possibility, when Archimedes finds a fulcrum,
Cassandra has a following and seven cities compete for the honor of endowing a
living Homer.