lua-users home
lua-l archive

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

On 21 Feb 2011, at 22:24, Sam Roberts <> wrote:
> That's funny, I wrote basically the same code :-)


> If you use ctrl-D to signal end-of-file, shouldn't the reader stop reading?

Yes. The bug report that started this thread said that Lua can sometimes try to read past EOF. This is usually OK - it usually gets EOF again - but it does not work as expected if the input is a terminal. I wanted to emphasise that the problem can occur in perfectly reasonable situations.

f.anthony.n.finch  <>