[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.1.3-rc4 now available
- From: Mike Pall <mikelu-0801@...>
- Date: Sun, 20 Jan 2008 22:15:02 +0100
Roberto Ierusalimschy wrote:
> > E.g. stdin may have been closed from C code or may not be open to
> > begin with [...]
>
> Once stdin is closed from C code, all is lost. Its corresponding FILE*
> may become a dangling pointer, and it is just impossible to detect it.
And this is another good reason why one should not do comparisons
for equality with stdin ...
--Mike