std.algorithm.cmp doesn't seem to support numeric types?
Adam D. Ruppe
destructionator at gmail.com
Wed Oct 16 23:57:25 UTC 2019
On Wednesday, 16 October 2019 at 21:34:35 UTC, Dennis wrote:
> Except that e.g. -2 - int.max underflows to int.max suggesting
> that int.max < -2.
Eh yeah, it would be something you should check in opCmp.
But this is how it is actually implemented on the processor
itself, just the cpu happens to also check the overflow for you
automatically...
More information about the Digitalmars-d-learn
mailing list