[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Yielding across lua_load
- From: Patrick Donnelly <batrick@...>
- Date: Thu, 8 Oct 2015 13:21:35 -0400
On Thu, Oct 8, 2015 at 7:55 AM, Soni L. <fakedme@gmail.com> wrote:
> Is it possible to yield across lua_load?
>
> --
> Disclaimer: these emails may be made public at any given time, with or
> without reason. If you don't agree with this, DO NOT REPLY.
$ lua
Lua 5.3.1 Copyright (C) 1994-2015 Lua.org, PUC-Rio
> coroutine.wrap(function() assert(load(function() coroutine.yield("a = 1") end)) end)()
stdin:1: stdin:1: attempt to yield across a C-call boundary
stack traceback:
[C]: in ?
stdin:1: in main chunk
[C]: in ?
--
Patrick Donnelly