lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Numeric key collision related bug in Lua 5.3
From
: Egor Skriptunoff <egor.skriptunoff@
...
>
Date
: Tue, 21 Apr 2015 18:32:09 +0300
Hi!
An interesting bug has been found in Lua 5.3
t = {[(1<<63)-333] = 0}
key = next(t) + 0.0
t[key] = "Lua is great!"
print(t[key]) --> Lua is great!
t[0] = "Are you sure?"
print(t[key]) --> nil
Why Lua is not great anymore?
-- Egor
Follow-Ups
:
Re: Numeric key collision related bug in Lua 5.3
,
Dirk Laurie
Re: Numeric key collision related bug in Lua 5.3
,
Roberto Ierusalimschy
Prev by Date:
Re: Guidance needed on C# and Lua integration
Next by Date:
Re: Numeric key collision related bug in Lua 5.3
Previous by thread:
Re: Guidance needed on C# and Lua integration
Next by thread:
Re: Numeric key collision related bug in Lua 5.3
Index(es):
Date
Thread