lua-users home
lua-l archive

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

> One question, its not clear (from sec 3.20 of the 5.0 ref man) whether I
> MUST call lua_newthread() to get a lua_State that can be passed as an
> argument to lua_resume().
> If I only want one coroutine, can I call lua_resume() on the "main"
> state that I created with lua_open()?

Technically yes, you can. It is just not very conventional...

-- Roberto