[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [manual] the table library and metatables
- From: Stephan Hennig <sh-list@...>
- Date: Wed, 27 Jan 2016 20:17:32 +0100
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