[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Stateless debugger
- From: "Chris Mumford" <cmumford@...>
- Date: Thu, 6 Nov 2003 08:38:18 -0600
Doesn't this require a parent Lua thread to spawn off the coroutine?
----- Original Message -----
From: "Luiz Henrique de Figueiredo" <firstname.lastname@example.org>
Sent: Wednesday, November 05, 2003 5:22 PM
Subject: Re: Stateless debugger
> >My problem is that Lua doesn't seem to be stateless. It drives the
> >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
> >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.