lua-users home
lua-l archive

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


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.