dmd 1.046 and 2.031 releases
Brad Roberts
braddr at puremagic.com
Tue Jul 7 00:39:03 PDT 2009
>> That's really cool. But I don't think that's actually happening (Or
>> are these the bugs you're talking about?):
>>
>> byte x,y;
>> short z;
>> z = x+y; // Error: cannot implicitly convert expression
>> (cast(int)x + cast(int)y) of type int to short
>>
>> // Repeat for ubyte, bool, char, wchar and *, -, /
>
> http://d.puremagic.com/issues/show_bug.cgi?id=3147 You may want to add
> to it.
Before going too far, consider:
byte x, y, z;
short a;
a = x + y + z;
How far should the logic go?
More information about the Digitalmars-d-announce
mailing list