Re: Lua compilation and exceptions
James Porter <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
On 3/4/2011 2:48 PM, Szymon Gatner wrote: > should Lua be built as C++ to play nicely with luabind error handling? As I recall (and it's been a while), neither way is particularly good, though both will "work". Even though Lua can use C++ exceptions for stack unwinding, not all of the internal functions are meant to have exceptions be thrown through them. In practice, it doesn't matter too much, but I think it causes issues with the Lua instance's counter for the stack depth. There are patches for Lua that make this totally safe, but I don't think they ever got into Lua proper. Some (all?) of this may be irrelevant at this point though, so take what I say with a grain of salt. - Jim ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d