lua-users home
lua-l archive

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


> I just realized that the manual doesn't say much about the return
> value of file:close for handles created by regular io.open.
> 
> [...]
> 
> IMHO the manual should mention at least briefly what those methods
> return in general. What do you think?

The manual says this:

  Unless otherwise stated, all I/O functions return nil on failure (plus
  an error message as a second result and a system-dependent error code
  as a third result) and some value different from nil on success.

  (http://www.lua.org/manual/5.3/manual.html#6.8)

What else could it say?

-- Roberto