[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.3.0 (work1) now available
- From: Scott Fial <scott@...>
- Date: Sun, 07 Jul 2013 11:48:35 -0700
On 7/7/2013 4:13 AM, Luiz Henrique de Figueiredo wrote:
Yes. The main point is that if x==y then t[x]==t[y]. And 1==1.0, as expected.
It seems like there may be instances where existing code is now
inadvertently inserting a mixture of floats and integers as indexes.
What representation will be returned by pairs() and ipairs()? If I
assign to t[1.0] may I then expect pairs() and ipairs() to return that
key as a float? If I then assign to t, will subsequent calls to
pairs() and ipairs() return that key as a float or an integer?