lua-users home
lua-l archive

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


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.