lua-users home
lua-l archive

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



On 23/04/2014 12:26, Dirk Laurie wrote:
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

Maybe you should try doing {[pinf]=pinf,[minf]=minf} instead...