[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Infinity as index
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 23 Apr 2014 17:26:06 +0200
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