Question regarding D v.0110

Remi remigillig at gmail.com
Sat Jul 11 10:42:20 UTC 2020


On Saturday, 11 July 2020 at 10:14:05 UTC, Walter Bright wrote:
> On 7/11/2020 2:37 AM, Remi wrote:
>> This is from the line with "if (ofs !>= 0)".
>> 
>> Would anyone know what this operator was for back in v0.110? 
>> I'm assuming it's been removed some time ago...
>
>
> Here's a truth table for it:
>
>     https://www.digitalmars.com/ctg/ctgNumerics.html#comparisons
>
> and !>= means "unordered or less than".
>
> Unordered means if one of the operands is a NaN. So, you can 
> rewrite it as:
>
>     if (std.math.isNaN(ofs) || ofs < 0)

That's great thanks! I didn't think of checking in that original 
docs, duh! It now compiles the game code but not some 
dependencies, I'll need to resolve issues regarding the std it 
seems as I think that changed since then.


More information about the Digitalmars-d mailing list