lua-users home
lua-l archive

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


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
>