lua-users home
lua-l archive

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


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.