Why do shift operators undergo integral promotion?

Walter Bright newshound2 at digitalmars.com
Tue Aug 9 14:47:30 PDT 2011


On 8/9/2011 2:08 PM, Jonathan M Davis wrote:
> From what I can see though, it sure looks like any C code which relies on the
> C behavior would be buggy.

I don't see any way to make that judgment. It's been Standard C behavior 
forever, including K+R prehistory. It's guaranteed that a lot of code will rely 
on it, whether or not anyone considers it good form.


More information about the Digitalmars-d mailing list