Annoyance with new integer promotion deprecations

Adam D. Ruppe destructionator at gmail.com
Mon Feb 5 23:09:16 UTC 2018


On Monday, 5 February 2018 at 22:52:41 UTC, Steven Schveighoffer 
wrote:
> But I can't see why there is controversy over negation of byte 
> turning into an int. I can't see why anyone would expect:
>
> int x = -b;
>
> when b is -128, to set x to -128. The integer promotion makes 
> complete sense to me.

Do you feel the same way about

float x = 1/2;

?


More information about the Digitalmars-d mailing list