[Issue 1977] integral arithmetic operation only on int?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 21 11:35:11 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1977
------- Comment #3 from schveiguy at yahoo.com 2008-11-21 13:35 -------
Note that this also errors, and is provably correct.
byte b;
short s = b + b;
IMO, all arithmetic should be allowed on homogeneous operations. That is,
performing arithmetic on two like types should be implicitly assignable to the
same type.
--
More information about the Digitalmars-d-bugs
mailing list