ushort + ushort = int?

Andrey saasecondbox at yandex.ru
Mon Aug 20 08:48:06 UTC 2018


On Monday, 20 August 2018 at 08:42:20 UTC, rikki cattermole wrote:
> It's called integer promotion and it originates from C.
> And yes C++ does have such support in some variant (I really 
> don't feel like comparing the two).

And I should do? Always use "cast" operator when I operate not 
with ints?


More information about the Digitalmars-d-learn mailing list