Integer promotion issue

Evan maskedmonkyman at gmail.com
Sun Jan 26 00:07:47 UTC 2020


On Saturday, 25 January 2020 at 23:58:00 UTC, Steven 
Schveighoffer wrote:
> On 1/25/20 6:46 PM, Evan wrote:
>> [...]
>
> Not really. You can cast yourself, write your own type that 
> does it, or use masking to have the compiler accept the result 
> (i.e. (a + b) & 0xff).
>
> I'd recommend your own type, as it will look a lot cleaner.
>
> -Steve

If I make my own type then I have to write more casts from my 
type to built in types. I want to create less work for myself not 
more.


More information about the Digitalmars-d mailing list