lua-users home
lua-l archive

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


On Sun, May 9, 2010 at 11:55 PM, HyperHacker <hyperhacker@gmail.com> wrote:
> value = tbl[] doesn't necessarily have to be valid, but perhaps it
> could be a shortcut for value = next(tbl)?

The trouble is, everyone sees different possibilities ;)

I see tbl[] on the RHS as meaning tbl[#tbl] because I've been missing
Python's tbl[-1]

Still can't see why one can't just say append = table.insert and use
that; it's almost as fast.

steve d.