[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: return types in the online documentation
- From: Rebel Neurofog <rebelneurofog@...>
- Date: Sun, 3 Oct 2010 23:36:00 +0400
> <http://lua-users.org/lists/lua-l/2009-05/msg00303.html>
Nice idea, but a suppose, it could be tweaked like
io.open ("filename") returns <handle | nil, error_message>
It would also be helpful if manuals would contain flag if function is
assert ()-passable like:
local fh = assert (io.open ("name")) -- best way
or
local something = assert (somefunc (args), "somefunc () failed") --
also good way