[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Newbie: Cooperative Multitasking
- From: "Ashley Fryer" <lua@...>
- Date: Thu, 4 Nov 1999 05:39:43 -0800
You should also consider an event-driven model. The model is built around
the idea of events and callbacks. Events are things like "user says
something to you", "a certain amount of time elapes". You can associate a
callback(s) with any event, and when the event fires the callback script
The upside is that ( at least to me ) it's a simpler model to implement, but
it's very powerful.
The main downside is that you can hang your app by writing an endless loop
in a script.
> -----Original Message-----
> From: email@example.com [mailto:firstname.lastname@example.org]On
> Behalf Of Derek Wong
> Sent: Wednesday, November 03, 1999 6:26 PM
> To: Multiple recipients of list
> Subject: Newbie: Cooperative Multitasking
> Hi everybody,
> I'm new to the list and new to lua. I was wondering if someone might
> offer me some advice at implementing cooperative multitasking with
> lua scripts. I'm an amateur programmer so please excuse me if I've
> used the wrong terminology.