Unsigned comparison operators

Cecil Ward d at cecilward.com
Fri Sep 29 11:20:13 UTC 2017


I love the D >>> operator and I use it a lot. So much safer than 
the chaos in C.

I would absolutely love to have unsigned comparison operators in 
D. Do you agree? What on earth would the syntax be like?

Yes, I could write a generic function or something, but the 
result would look ugly. And I would have to be very careful not 
to screw up type conversions (although i’m pretty sure there is 
some help available in the rtl to assist in getting the job done 
safely).


More information about the Digitalmars-d mailing list