[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Stateless debugger
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 5 Nov 2003 21:22:14 -0200
>My problem is that Lua doesn't seem to be stateless. It drives the debugger
>via hooks instead of the other way around. I've figured out how to use
>lua_sethook to specify my callback functions, but what I need to do here is
>give control back to the OS and resume the interpreter later.
Lua has coroutines: you can yield control at any point in a Lua function
and resume it later. It probably fits your needs.
--lhf