lua-users home
lua-l archive

Re: Infinity as index

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


2014年04月23日 16:12 GMT+02:00 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
>> IMHO it is a bug that tbl[inf] and tbl[-inf] does not work.
>
> ?
$ uname -a
Linux jeremia 3.2.0-54-generic #82-Ubuntu SMP Tue Sep 10 20:08:42 UTC
2013 x86_64 x86_64 x86_64 GNU/Linux
$ lua
Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio
> pinf=1/0
> minf=-pinf
> tbl={pinf=pinf,minf=minf}
> =tbl[pinf],tbl[minf]
nil nil

AltStyle によって変換されたページ (->オリジナル) /