[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: customizable Lua "panic" behavior
- From: "Jim Mathies" <jamesmathies@...>
- Date: Mon, 19 Nov 2001 22:59:47 -0600
|
| You don't have to predict what they do. Just make sure that a possible
| error is caught. How do you start the users code? With dostring/dofile?
| Then you are already save! Executing code with these functions will never
| reach the exit in ldo.c.
|
What about running out of memory on an embedded system? In this case
exit is called. Or I believe a stack overflow - running out of stack space.
These are things that can't be 'caught' in Lua but _can_ be dealt with by
the host program.