[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: rename LUA_RIDX_CPCALL to LUA_RIDX_CCALL? (5.2.0-work2)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 29 Mar 2010 08:57:21 -0300
> Fast error status returning versions of lua_pushlstring and
> lua_newuserdata() would be most welcome to me.
I expect this to mean that these functions would need to be run in
protected mode, which will slow down things. Out-of-memory situations
should be very rare. Moreover, a program is usually constrained in that
case: there's not much you can do if there's no memory, except try to
free some of your own memory and try again. I think starting your Lua
high-level transactions with lua_cpcall let's you do that. Trying to
recover from every possible error at the point they occur seems too much
for too little.
> The dance required to get strings and boxed pointers passed to lua
> callbacks is borderline ridiculous. :)
What do you mean exactly?