[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: debug.gethook
- From: Coda Highland <chighland@...>
- Date: Fri, 15 Aug 2014 16:06:59 -0700
On Fri, Aug 15, 2014 at 3:56 PM, Sean Conner <sean@conman.org> wrote:
> I notice different behavior between Lua 5.1 and Lua 5.2 for this code.
Heads up, as long as we're talking about portability:
LuaJIT has different behaviors on hooks too. Don't trust code using
debug.sethook (especially when coroutines are involved) to be portable
to a different Lua VM (as even PUC-Rio Lua 5.1 has different behaviors
from PUC-Rio Lua 5.2, as you've pointed out) without careful testing
and inspection.
/s/ Adam