Question regarding D v.0110

Walter Bright newshound2 at digitalmars.com
Sat Jul 11 10:14:05 UTC 2020


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)



More information about the Digitalmars-d mailing list