[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: is it possible to make longjmp-free Lua?
- From: "Juris Kalnins" <juris@...>
- Date: Mon, 27 Jul 2009 12:12:19 +0300
On Mon, 27 Jul 2009 11:31:05 +0300, Jerome Vuarand
This would mean that all your C libraries would have to be modified to
take that flag into account and do special error handling.
A good point, but would that really be required?
If lua_State "locks down" and does nothing on most API calls, returns
nil/0 to every lua_topointer/touserdata, etc.
then most of the C code wouldn't need to know about it, unless it uses Lua
calls to do C side resource management.
prevent using many (most?) existing binary modules, unless you patch
every one of them.
If there are may external modules, that would be Bad, yes. But if Lua is
simply an embedded extension language, then this is not an issue.