Valeriy Skurikhin
2012-04-27 09:57:42 UTC
Hi, list!
Recently I found, that results of tostring(0) and tostring(-0) may
depend on call order.
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
A bit confusing behaviour. And it was chnanged in Lua 5.2:
Lua 5.2.0 Copyright (C) 1994-2011 Lua.org, PUC-Rio
I believe this feature is known to the community, but I didn't manage
to find any clear anwser, whether it should be considered as a bug or
not. Could someone give me any reference, please?
Regards,
Valeiry
Recently I found, that results of tostring(0) and tostring(-0) may
depend on call order.
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
return (tostring(0) .. tostring(-0))
00return (tostring(-0) .. tostring(0))
-0-0A bit confusing behaviour. And it was chnanged in Lua 5.2:
Lua 5.2.0 Copyright (C) 1994-2011 Lua.org, PUC-Rio
return (tostring(0) .. tostring(-0))
0-0return (tostring(-0) .. tostring(0))
-00I believe this feature is known to the community, but I didn't manage
to find any clear anwser, whether it should be considered as a bug or
not. Could someone give me any reference, please?
Regards,
Valeiry