[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Exception handling questions
- From: Mark Hamburg <mhamburg@...>
- Date: Sun, 28 Nov 2004 01:25:44 -0800
on 11/27/04 11:35 PM, Mark Hamburg at mhamburg@adobe.com wrote:
> 2. Reading seterrorobj, it looks to me like it leaves a random object on the
> top of the stack in the event of errors it doesn't understand such as
> LUA_ERRFILE.
Particularly suspicious if I'm reading the handling of generic C++ errors
correctly.
> 3. The panic case documentation indicates that the "Lua" is invalid. Is it
> the entire universe that is invalid or just this thread within the universe?
> Can I simply arrange for the thread to be garbage collected?
>
> 4. It would also be nice in the panic case to have access to the error code,
> but I can probably just assume LUA_ERRRUN and be correct most of the time.
Could one just set L->status to the error code before calling panic?
Mark