request switch statement with common block

JS js.mdnq at gmail.com
Sat Aug 3 07:38:46 PDT 2013


switch (cond)
     common: always executed code here
     case A : etc...
     ....
}

instead of

if (cond) { always executed code here  }
switch (cond)
     case A : etc...
     ....
}

which requires modification of the condition twice when necessary


More information about the Digitalmars-d mailing list