Integer promotion... what I'm missing? (It's monday...)

Paolo Invernizzi arathorn at NOSPAM_fastwebnet.it
Wed Jun 28 07:05:38 PDT 2006


Don Clugston wrote:

> It's a hard one. It would be really painful if equality comparisons 
> between signed & unsigned types was an error; it's almost always OK.
> Comparison of signed/unsigned variables with an unsigned/signed constant 
> is always an error; it would be nice if the compiler detected it.

That was a comparison between an unsigned/signed CONSTANTS, that's the 
mess. They are foldable in that example....

---
Paolo



More information about the Digitalmars-d-learn mailing list