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

Simen Kjaeraas simen.kjaras at gmail.com
Thu Dec 13 06:30:54 PST 2012


On 2012-51-13 13:12, kenji hara <k.hara.pg at gmail.com> wrote:

> D does not support such implicit *construction* in return statement and
> function argument.
> It is a current language design, and not a bug.

Walter does not seem to agree (see his post in this discussion). Previous
discussions with Andrei (see bug #8570[1] and related discussion[2])
indicates he also thinks alias this (or some other language feature)
should support this. I guess this is not really relevant to this
discussion, so I'll make a separate  thread.


[1]: http://d.puremagic.com/issues/show_bug.cgi?id=8570
[2]:  
http://forum.dlang.org/thread/sedknwtlaefrxuflnbez@forum.dlang.org?page=8#postjul0qv:242l9d:241:40digitalmars.com


-- 
Simen


More information about the Digitalmars-d mailing list