lua-users home
lua-l archive

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


On Wed, Jun 10, 2015 at 9:00 AM, Egor Skriptunoff
<egor.skriptunoff@gmail.com> wrote:
> In Lua 5.3 equal functions are converted to different dumps when
> strip==true.
>
> local function f(x) return x+1 end
> local function g(y) return y+1 end
> print(string.dump(f, true) == string.dump(g, true))  --> false on Lua 5.3,
> true on LuaJIT
>
> If both dumps are load()-ed to exactly the same closures, why these dumps
> are not equal after stripping debug info?
>
> -- Egor

The result is false for Lua 5.3.0 (Linux host 3.2.0-4-amd64)


-- 


Best regards,
Boris Nagaev