lua-users home
lua-l archive

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


On Mon, 27 Jul 2009 11:31:05 +0300, Jerome Vuarand <jerome.vuarand@gmail.com> wrote:

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.

This
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.