why ushort alias casted to int?

Nathan S. no.public.email at example.com
Fri Dec 22 10:53:53 UTC 2017


On Friday, 22 December 2017 at 10:42:28 UTC, crimaniak wrote:
> Hm, really. ok, I will use the explicit cast, but I don't like 
> it.

It's because the C programming language has similar integer 
promotion rules. That doesn't make it any more convenient if you 
weren't expecting it but that is the reason behind it.


More information about the Digitalmars-d-learn mailing list