lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Strange way to determine whether it is Lua or C function
From
: Egor Skriptunoff <egor.skriptunoff@
...
>
Date
: Mon, 24 Aug 2020 18:01:36 +0300
On Mon, Aug 24, 2020 at 10:50 AM Viacheslav Usov wrote:
the following code seems to achieve the same effect without coroutines
You forgot to unhook (to save and restore the original hook).
So, using a temporary coroutine does make sense here.
BTW, "error(0)" could be replaced with just "x()" :-)
Follow-Ups
:
Re: Strange way to determine whether it is Lua or C function
,
Viacheslav Usov
References
:
Strange way to determine whether it is Lua or C function
,
Egor Skriptunoff
Re: Strange way to determine whether it is Lua or C function
,
Viacheslav Usov
Re: Strange way to determine whether it is Lua or C function
,
Viacheslav Usov
Prev by Date:
Re: Parallelizing a busted test suite
Next by Date:
Re: Question about luaH_newkey
Previous by thread:
Re: Strange way to determine whether it is Lua or C function
Next by thread:
Re: Strange way to determine whether it is Lua or C function
Index(es):
Date
Thread