Is there any reason why arithmetic operation on shorts and bytes return int?

Walter Bright newshound2 at digitalmars.com
Wed Dec 12 13:35:59 PST 2012


On 12/12/2012 10:25 AM, Jonathan M Davis wrote:
> If alias this isn't do an implict conversion, then there's a bug in alias
> this. That's how implict conversion is done in D, and it's the whole point
> of alias this.

And it does, as I relied on this to do the halffloat implementation.



More information about the Digitalmars-d mailing list