lua-users home
lua-l archive

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


> 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