[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: string.dump the same function is not equal?
- From: Rodrigo Azevedo <rodrigoams@...>
- Date: Thu, 31 Jan 2019 15:27:40 -0300
Anyone could tell me why the code below returns 'false', when I
expected a 'true' instead. Tested with lua5.2, lua5.3 and
lua5.4-work2.
-----
local f1 = string.dump(function(x) x=x+1 return x end,true)
local f2 = string.dump(function(x) x=x+1 return x end,true)
print(f1 == f2)
-----
Thanks!
--
Rodrigo Azevedo Moreira da Silva