[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Noob question -- On error, exit function and terminate script
- From: Sam Roberts <vieuxtech@...>
- Date: Mon, 27 Jun 2011 09:31:56 -0700
> On Sat, Jun 25, 2011 at 12:19 PM, Lorenzo Donati
> <lorenzodonatibz@interfree.it> wrote:
>> I must nevertheless admit that the description for assert is slightly vague:
>>
>> "Issues an error when the value of its argument v is false (i.e., nil or
>> false);..."
The assert() function documentation isn't such a great spot to collect
all the information on error handling in lua.
"error" has an explicit meaning, its described here:
http://www.lua.org/manual/5.1/manual.html#2.7
which contains links to error() and pcall(), reading the description
of all the related functions is a good idea: pcall(), assert(),
lua_pcall(), lua_atpanic(), etc...
Maybe search the manual for the string "error", or just read it top-to-bottom.
Cheers,
Sam
- References:
- Noob question -- On error, exit function and terminate script, marbux
- Re: Noob question -- On error, exit function and terminate script, Rebel Neurofog
- Re: Noob question -- On error, exit function and terminate script, marbux
- Re: Noob question -- On error, exit function and terminate script, Lorenzo Donati
- Re: Noob question -- On error, exit function and terminate script, marbux