lua-users home
lua-l archive

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


Asko Kauppi <askok@dnainternet.net> writes:

> Maybe this comes to myself not being so at ease with coroutine
> coding. Maybe the best way to do the server I've been involved with is
> using  coroutines.

Consider coroutines as pretty much the same as subroutines.  The
principal difference is that they don't give up stack, instruction
pointer and local variables (the dynamic execution context) while
returning execution control and return values.  They pass the buck
without passing away.

-- 
David Kastrup