[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: coroutine
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 18 Dec 2002 14:28:32 +0000
> I read the manual of lua5.0 beta and cannot find enough information
> to use coroutine. Maybe I'm not enough familiar with lua?
No, the manual is still sloppy about coroutines.
> I know how to create coroutines with lua language but don't know how to
> do that with C interface.
You may have a look at the implementation of the "coroutine" library
(in lbaselib.c). There you will find how Lua implements its coroutines
using the C interface.
-- Roberto