lua-users home
lua-l archive

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

Doesn't this require a parent Lua thread to spawn off the coroutine?

----- Original Message ----- 
From: "Luiz Henrique de Figueiredo" <>
To: <>
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.
> --lhf