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 <vieuxtech@gmail.com> 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.

Tony.
--
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/