October 29, 2010
It all depends on how important backwards compatibility with C is (I wish it weren't important).

From a machine code point of view, D's behavior probably makes more sense, at least with intel.

http://d.puremagic.com/issues/show_bug.cgi?id=5132

On 10/29/2010 01:52 PM, Jesse Phillips wrote:
>
> Ok, truly not what I was thinking would happen. I believe D's behavior to be correct, but as it is the exact same code I think it is worthy of a bug report.
October 29, 2010
Ellery Newcomer Wrote:

> It all depends on how important backwards compatibility with C is (I wish it weren't important).

I know, in this case it would seem odd to rely on such behavior of C (I expect such operations are generally placed in a short and thus does not care what happens as an int)

But I do understand the desire behind the rule. I mean it is much easier to convert C when you have the compiler yelling at you.
1 2
Next ›   Last »