switch break/fall (last minute request ... )

%u u at digitaldaemon.com
Mon Dec 25 18:09:10 PST 2006


== Quote from Hasan Aljudy (hasan.aljudy at gmail.com)'s article
>    case C:
>         //something
>    case D:      <-- error, no break or fall statement before case
D

So:
>    case C:
          if( b1 )
              { fall; break;}
          else
              if( b2)
                  goto case C;
              else
                 { break; fall;}
>    case D:

would be legal?



More information about the Digitalmars-d mailing list