lua-users home
lua-l archive

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


2010/5/26 spir ☣ <denis.spir@gmail.com>:
>   for i in Interval(start,stop,step) do ... end
>

It's a useful pattern, but rather slow if just implemented as an
iterator.  I suppose the compiler could convert this case into the
same optimized code as numeric-for.   But what then have we gained,
except a new notation which is more awkward to type?

steve d.