Is there ANY chance we can fix the bitwise operator precedence

Sean Kelly sean at invisibleduck.org
Sun Jun 20 16:31:03 PDT 2010


Andrei Alexandrescu Wrote:

> On 06/19/2010 06:58 AM, Don wrote:
> > Andrei Alexandrescu wrote:
> >> Don wrote:
> >> [snip]
> >>> Or is too late to break backwards compatibility with B ?
> >>
> >> We can and should do it. It won't impact TDPL adversely.
> >
> > Excellent! I'll make a patch for it when I have time.
> 
> Walter just gave the green light, so Don - it's up to you.
> 
> He also agreed to give more thought to the restriction of forcing every 
> swich label to be ended with a control flow transfer statement.

You mean every label that is followed by a statement, correct?  This is a common idiom that I wouldn't want to change:

switch (x) {
case 1: case 2: case 3: case 4:
    doSomething();
    break;
default:
    whatever();
}


More information about the Digitalmars-d mailing list