lua-users home
lua-l archive

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


You're right that's a useful behaviour.

On Thu, Mar 29, 2018 at 2:54 PM, Petri Häkkinen <petrih3@gmail.com> wrote:

> On 29 Mar 2018, at 6.51, Eric Man <meric.au@gmail.com> wrote:
>
> Maybe it makes sense for a length operator to simply return how many non-nil elements is in the data structure.

It does not guarantee that t[#t+1I is an empty slot, does it? can’t think of any real use for that for tables.