lua-users home
lua-l archive

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


Can I treat my main lua_state as a coroutine by using lua_resume and lua_yield? The only mention of them in the manual is Section 3.20 - Threads. It seems to indicate that you must create a thread to use these. However, I don't see the reason behind this, and preliminary testing indicates it works fine on the main lua_state.

Is this going to bite me later on?

Jack