lua-users home
lua-l archive

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


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