[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Numeric key collision related bug in Lua 5.3
- From: Coda Highland <chighland@...>
- Date: Tue, 21 Apr 2015 13:41:14 -0700
On Tue, Apr 21, 2015 at 1:23 PM, Liam Devine <liamdevine@oolua.org> wrote:
> On 21/04/15 21:04, Andrew Starks wrote:
>
>> It would add tremendously to my understanding if someone someone would
>> make up a story that includes a user in a real-world scenario hitting
>> this edge case. ...
>>
>>
>>
>> -Andrew
>>
>
> Correction to my earlier email a this does not just effect rawequal.
>
>> a, b = math.maxinteger + 2.1, math.maxinteger + 3.5
>> print(math.type(a), math.type(b))
> float float
>> return a == b
> true
>
>
>
> --
> Liam
>
THIS isn't a bug. It's only tangentially related to the behaviors
under discussion. rawequal or not rawequal, this example is working as
intended.
/s/ Adam