lua-users home
lua-l archive

Re: errno handling on sys.() and io.() functions

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


* On Thu Jan 31 12:14:32 +0100 2013, Roberto Ierusalimschy wrote:
 
> 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) [...]
>
> [...]
>
> os.remove (filename)
> [...] If this function fails, it returns nil, plus a string describing
> the error and the error code.
Very true, thanks for pointing that out.
-- 
:wq
^X^Cy^K^X^C^C^C^C

AltStyle によって変換されたページ (->オリジナル) /