symmetric signed types

Walter Bright newshound2 at digitalmars.com
Thu Jan 23 14:26:31 PST 2014


On 1/23/2014 12:35 PM, Andrei Alexandrescu wrote:
> On 1/23/14 4:09 AM, Dominikus Dittes Scherkl wrote:
>> What type should b get? (of course "byte" but the value doesn't fit!)
>
> The type will be int.

As an aside, the C integral arithmetic rules are often criticized. However, 
nobody has found another set of rules that didn't come with (sometimes severe) 
shortcomings of their own.

The huge advantage of the C rules is they are very widely known, used, and 
understood.



More information about the Digitalmars-d mailing list