lua-users home
lua-l archive

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


On Wed, Sep 9, 2009 at 11:05 AM, John Hind<john.hind@zen.co.uk> wrote:
> I would prefer a single __iter metamethod with deeper language integration
> so we can write:
>
> for v in myobject do print(v) end

That does make more sense than generalized ipairs and pairs.  I always
liked how this used to happen 'magically' in 5.0, although the reason
for the change was clear enough.