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

d coder dlang.coder at gmail.com
Tue Dec 11 05:03:20 PST 2012


On Tue, Dec 11, 2012 at 6:23 PM, monarch_dodra <monarchdodra at gmail.com>wrote:

> D's stance regarding integer operations is "if it compiles, it creates the
> same output as in C".
>

Thanks Monarch. So it is a gotcha we inherit from C. :-)

Regards
- Puneet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20121211/0ad3c873/attachment.html>


More information about the Digitalmars-d mailing list