lua-users home
lua-l archive

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


The lua_yield question is:

If Ilua_yield from the C code, and then remove in references to the
thread, will it collect OK?

That is, I was thinking of using lua_yield as a means of script
termination.

In a Lua function

int neverreturn (lua_State* L)
{
  ...
 return lua_yield(L,n);
}

db