[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: what to make of this fellow named __ipairs?
- From: Axel Kittenberger <axkibe@...>
- Date: Thu, 27 Jan 2011 09:20:55 +0100
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.