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

Walter Bright newshound2 at digitalmars.com
Fri Dec 14 18:23:16 PST 2012


On 12/14/2012 4:02 PM, H. S. Teoh wrote:
> I'm so impressed by this trick that I decided to do a writeup of it on
> the wiki:
>
> 	http://wiki.dlang.org/Implicit_conversions_in_user_types

I'd prefer to call it a "technique" rather than a "trick", because this is what 
alias this was designed for!



More information about the Digitalmars-d mailing list