Is there ANY chance we can fix the bitwise operator precedence rules?

bearophile bearophileHUGS at lycos.com
Fri Jun 18 18:38:45 PDT 2010


> As this (this is D syntax that you can already use):
> 
> void main() {
>     int x, y;
>     switch (x) {
>         case 0: y++; goto case 1;
>         case 1: y++;
>         default:
>     }
> }

Sorry, I meant something like:

void main() {
    int x, y;
    switch (x) {
        case 0: y++; goto case 1;
        case 1: y++; break;
        default: break;
    }
}

Bye,
bearophile


More information about the Digitalmars-d mailing list