lua-users home
lua-l archive

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


David Morris-Oliveros wrote:

> But, out of curiosity, how would i tell the coroutines to
> use independant envs?

Tell a function to use a different environment (via setfenv
or lua_setfenv), then turn that function into a coroutine.

-- 
Aaron