[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re[2]: NaN in Lua 5.3 Reference Manual
- From: "John Hind" <john.hind@...>
- Date: Fri, 23 Jun 2017 17:04:07 +0000
In this case, I would reference IEEE 754 when 'float number' type is first introduced in section 2.1. I would then remove the reference to NaN from section 3.4.4. That leaves the issue of NaN not being a valid table key. Why not given it is a unique bit pattern in the IEEE 754 code space? But if it is necessary to specifically exclude it, I would refer to it as "the float number value NaN", or "the IEEE 754 value NaN".
Presumably IEEE 754 positive and negative infinity ARE valid table keys, since they are not specifically excluded? What about positive and negative zero? Would these be distinguished table keys?
The problem I had reading section 2.1 is that it implies 'NaN' is something like 'nil' (which as already been introduced) and never explains that it is actually a specific value of the float subtype of the number type.
------ Original Message ------
Sent: 23/06/2017 16:15:26
Subject: Re: NaN in Lua 5.3 Reference Manual