lua-users home
lua-l archive

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


Am 27.01.2016 um 19:45 schrieb Dirk Laurie:
> 2016-01-27 19:09 GMT+02:00 Stephan Hennig <sh-list@posteo.net>:
> 
> They do respect the __index metamethod, but the primitive
> length calculation does not. Since you have failed to provide
> __len, #t is still 3.

All functions in the table library need to refer to the length of a
table.  Good catch.

Best regards,
Stephan Hennig