lua-users home
lua-l archive

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


> <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