[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Exit one Lua state from a (C) API function
- From: Viacheslav Usov <via.usov@...>
- Date: Tue, 2 Mar 2021 10:42:58 +0100
On Tue, Mar 2, 2021 at 6:59 AM bel <bel2125@gmail.com> wrote:
> No, that is not what I said.
That may not be the exact words that you used, but, once given the
quotation from the manual, your claim that lua_pcall() behaved
differently was claiming a bug.
> The program should help to test out if a particular solution works or not.
Again, when discussing a (potential) bug, one should come up with a
minimal bug demo, not a whole (research) project where it may have
been (mis) observed originally.
> Another acceptable solution might be to allow calling the my_exit function only in cases where yield is allowed and return false otherwise.
Then why can't you simply wrap all of the code in a coroutine and use
yield to exit it?
Cheers,
V.