[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: cooperative tasks and coroutines
- From: Gary T Dahl <dahl@...>
- Date: Fri, 8 Jun 2001 15:26:54 -0500 (CDT)
Hi.
Call it what you will, I want to be able to write lua scripts like this:
function latentFunction()
doSomeStuff()
waitForSomeEvent()
doSomeOtherStuff()
end
Where waitForSomeEvent() haults execution and saves enough information
that another function can later retrieve that information and resume
execution.
I've read a lot of the archived discussion regarding games etc. and
downloaded LuaCC to implement a solution. Unfortunatly with LuaCC things
like dofile()s end up trying to write outside their memory.
Are there any fixes or updates or alternatives anyoneone can direct me
towards?
Thanks, Gary.