lua-users home
lua-l archive

Re: coroutine

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


> 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

AltStyle によって変換されたページ (->オリジナル) /