lua-users home
lua-l archive

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


Philippe Lhoste wrote:
> While I am not overly interested by recursive algorithms (useful,
> but avoidable most of the time. Please, no thread on this, I know
> I am probably wrong... :-), the finite state machine argument is
> quite valid. I don't know how to jump from one part of code to
> another, in Lua (no goto). Perhaps with dofile, but it is quite
> clumsy.

Coroutines are supposed to provide a nice solution to this, although I
haven't tried them myself.

-John