lua-users home
lua-l archive

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


For your 'objects' you can make ipairs mean whatever you want it to.
Sticking with the default meaning (e.g. for proxy tables) should be
prefered coding style since the reader/maintainer familiar with Lua
will expect it to work that way.

The right to exist for ipairs is an easy case. Default ipairs is well
defined to be unequivocal for any table whereas default len is not.

Missing __next is a pity for complete virtualisation/proxies.