lua-users home
lua-l archive

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


On Thu, 2010-01-14 at 16:30 +0100, Wesley Smith wrote:
> I've mostly built pretty simple state machines with coros for things
> like handling asynchronous events from mouse and keyboard.  Typically
> they look like this (coded in the mail so pardon any mistakes):
> ...

Ok, now i see it. Very, ehrr, "programatic". I guess if you had a
papersheet sized state-machine this could be a bit opaque, but i like
that you can follow the execution literally with two fingers, one for
the current instruction and other for the last yield.

Jorge