lua-users home
lua-l archive

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


> We also can reuse end keyword for this
> p[end] = value

To me, that implies that the (current) last item in the table has its
value replaced with the new value, not that a new value is appended to
the table.

To make it clear for me, it would have to be something crazy like:
p[end+1] = value

...in which case end would simply be syntactic sugar for 'the length of
the current table'.

I find it unlikely that that will happen. ;)