[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: '__iter', yet again!
- From: Alexander Gladysh <agladysh@...>
- Date: Thu, 17 Dec 2009 01:04:00 +0300
On Thu, Dec 17, 2009 at 00:29, John Hind <john.hind@zen.co.uk> wrote:
> '__iter' is intended to enable you to write:
> for v in obj do ... end
Oh. I hope, if such feature would be implemented, default __iter would
not be set for any Lua type.
Another option I can live with, is to make third kind of for loop for this.
I prefer to be explicit in my loops.
Alexander.