lua-users home
lua-l archive

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


HI!

This code example causes error after ~500 for loop iterations.

for k=1,1000 do
    for line in io.lines() do
        break
    end
end

When iteration cycle breaks, file handles doesn't close.
Does break keyword wrong for iterator's loop?