[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Bug with load
- From: Tony Finch <dot@...>
- Date: Mon, 21 Feb 2011 22:33:47 +0000
On 21 Feb 2011, at 22:24, Sam Roberts <email@example.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.
f.anthony.n.finch <firstname.lastname@example.org> http://dotat.at/