lua-users home
lua-l archive

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


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