Re: Ravi bug related to setting of L->top in OP_RETURN
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Ravi bug related to setting of L->top in OP_RETURN
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 7 Aug 2015 08:51:57 -0300
> > Maybe we could use a local variable inside luaV_execute for that task?
> >
>
> But would that work in coroutines when control has to return to the
> function?
Normally, a coroutine cannot yield in between those two kinds of
expressions. But a hook can yield between any two expressions :-(
> I was wondering if there should be another field in
> lua_State to hold the value of L->top in this case?
But then what is the advantage?
-- Roberto