lua-users home
lua-l archive

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


* Klaus Ripke:

> That would give
>
> for v, i = t[i], 1, #t -- as above, runs to #t
> for v, i = t[i], 1 -- breaks on v == nil
> for v, i = t[i] -- start defaults to 1

This needs additional keywords, IMHO.  As it stands, it's quite
unreadable, and you have to carefully memoize all the rules.