lua-users home
lua-l archive

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


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