lua-users home
lua-l archive

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


On Wed, May 16, 2018 at 10:32 PM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:

> Did you try this code with the Lua 5.4 work version?

Lua 5.4.0 (work1)  Copyright (C) 1994-2018 Lua.org, PUC-Rio
> t = {} local t = t for i = 1, 0x7fffffff do t[i] = i end
> print(#t)
2147483647
> t = {} local t = t for i = 1, 0x7ffffffff do t[i] = i end
stdin:1: table overflow
stack traceback:
        stdin:1: in main chunk
        [C]: in ?
> print(#t)
3221225472
>

Cheers,
V.