lua-users home
lua-l archive
Numeric key collision related bug in Lua 5.3
[
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
: 2015年4月21日 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
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル