Behaviour of unsigned cast
Dan
murpsoft at hotmail.com
Tue Apr 10 11:30:00 PDT 2007
David B. Held Wrote:
> So what do you guys think of mixed-sign arithmetic? +, - , *, /, etc?
> Does it cause you problems, or too convenient to give up?
It doesn't cause *me* problems because I only use unsigned values for loop inc/dec, enums, and such. I almost only ever use signed for numbers where the point is that it's a number.
I've already said my opinion is that unsigned/signed math should be explicitly cast.
More information about the Digitalmars-d
mailing list