lua-users home
lua-l archive

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

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
gets called.

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: []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.