[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: State usability after panic
- From: Mak Nazečić-Andrlon <owlberteinstein@...>
- Date: Tue, 6 Dec 2011 18:05:51 +0100
Interesting - so, is recovery possible (longjmp/throwing an exception
to escape)?
Mak
On Tue, Dec 6, 2011 at 4:32 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> Good, good. So what level of stack manipulation would be considered
>> safe? Can I, say, safely retrieve a number from the registry? Again,
>> thank you so much for the explanation.
>
> We will update the manual. The panic function can do anything, except
> that:
>
> 1) it cannot return (or else Lua aborts the program).
>
> 2) it must check for stack space before pushing anything.
>
> -- Roberto
>