What is the use case for this weird switch mecanism

deadalnix deadalnix at gmail.com
Tue Oct 30 09:16:48 PDT 2012


Today, I noticed by digging into D details the following construct :

switch(foo) {
     statement;
     case A:
         // Stuffs . . .

     // Other cases.
     default:
         // Stuffs . . .
}

What the hell statement is supposed to do ? And what is the use case for 
this ?


More information about the Digitalmars-d mailing list