lua-users home
lua-l archive

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


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