Unsigned comparison operators
Cecil Ward
d at cecilward.com
Wed Oct 18 05:29:26 UTC 2017
On Friday, 29 September 2017 at 14:13:07 UTC, Stefan Koch wrote:
> I have a hard time imagining a use case.
It just came up in a real application. It was a case of
bit-twiddling, happened to come up during some weird 'arithmetic'
when trying to write a jump-free replacement expression for a ? :
because the compiler still generated jumps for a ? : when I
didn't want it to. (A jump-less attempt at Bresenham's line
algorithm.)
More information about the Digitalmars-d
mailing list