lua-users home
lua-l archive

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

Roberto Ierusalimschy wrote:
> We forgot to tell: Lua will have a "for"! (next week)

I already have one *g* ("for i,v in table do end" and
"for i in num,num do end").  But I found, that it's
not that useful without a break.  And it isn't even
much faster than foreach (and I think I have the fastest
possible implementation).  But a "for" and a "break" is
great :-)

Now that we have all these iterators, how about a "next"
tag method?

Ciao, ET.