About switch case statements...

bearophile bearophileHUGS at lycos.com
Sun Nov 15 12:23:06 PST 2009


Walter Bright:

> I just use whitespace:
> 
>       switch (c) {
>           case 1:
>               blah();
>               break;
> 
>           case 2:
>               blah();
>           case 3:
>               blah();
>               break;
>       }
> 
> Works fine.

If that's a try at something humorous I don't get it.

Bye,
bearophile



More information about the Digitalmars-d mailing list