lua-users home
lua-l archive

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


Alternatively:

repeat
  ...
until false


or

for i in infinite_repeater do
  ...
end

function infinite_repeater()
  return true
end

(or similar, sorry I did not try this last case, and I am not SO
familiar with these iterator functions yet, but really nice concept
somehow, especially as they use their own upvalues.)