[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: yield across metamethod/C-call ?
- From: Peter Cawley <lua@...>
- Date: Tue, 16 Feb 2010 17:13:50 +0000
On Tue, Feb 16, 2010 at 4:56 PM, Valerio Schiavoni
<valerio.schiavoni@gmail.com> wrote:
> Hello everyone,
> can anyone explain me what's happening running this simple lua script:
> --metaerror.lua
> coroutine.create(coroutine.yield())
This calls coroutine.yield() from the main thread, and the main thread
cannot yield, as it has nowhere to yield to.