lua-users home
lua-l archive

RE: 'gc' tag method

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


>> Any plans to introduce an optional cycle limiter, to guard against 
>> infinite
>> loops and things like that? Such that I can say: lua_setcycles(50); 
>> lua_dostring(...); and at 50 cycles in, it will yield back to the
function 
>> that called it with a LUA_YIELD return code, at which point I can
call 
>> lua_continue() or do something else...
>
> Hopefuly, you will be able to do that using the line hook.
Line hooks are too expensive for performance-sensitive production code.
Curt

AltStyle によって変換されたページ (->オリジナル) /