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

Jonathan M Davis jmdavisProg at gmail.com
Fri Jun 18 16:17:11 PDT 2010


bearophile wrote:

> 2) switch cases that don't end with goto or break:
> 
> void main() {
>     int x, y;
>     switch (x) {
>         case 0: y++;
>         default: y--;
>     }
> }

I, for one, _want_ case statements to be able to fall through. It would be 
horribly painful in many cases if they couldn't. Now, requiring a separate 
statement like fallthrough or somesuch instead of break might not be a bad 
idea, but requiring that each case end with a break would seriously restrict 
the usefulness of switch statements.

- Jonathan M Davis


More information about the Digitalmars-d mailing list