[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Reference doubts (2)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 03 Mar 2004 15:07:55 -0300
> Perhaps "on failure" refers only to the underlying fclose() failing,
> not to the case of calling io.close() with an already closed file?
Yes. Lua considers the use of a closed file a type error, in the same
class as "io.close(3)" or similar things. Those errors always throw an
error. (This is true for the other io functions, too.)
-- Roberto