lua-users home
lua-l archive

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

hi, list
I am a newbie to Lua and learning.

I write a test script, named test3.lua:

 for count = 1, math.huge do
     local line =
     if line == nil then break end
     io.write(string.format("%6d ", count), line, "\n")

The script is very simple, but after running it, I do not know how to exit the script normally.
I means what I should input will make return nil.

thanks all.
As we know, there are known knowns. There are things we know we know. We also know there are known unknowns. That is to say we know there are some things we do not know. But there are also unknown unknowns, the ones we don't know we don't know.