lua-users home
lua-l archive

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


2015-06-04 20:26 GMT+02:00 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
>> Imagine that the concept of "sequence" only came in with Lua 5.3,
>> when integers are already distinguished and are preferred over
>> floats of equal value as table keys. Surely the definition would
>> in that case have been formulated in terms of integes.
>
> Following that reasoning, would the following be a sequence too?
>
>   seq = {10, 20, 30, [2^63] = 40}
>
> After all, 2^63 is not an integer key.
>
> -- Roberto
>