Inside the switch statement
    BCS 
    none at anon.com
       
    Tue Jun  9 23:28:14 PDT 2009
    
    
  
Hello Ary,
> Saaa wrote:
> 
>>> You missed the alternative syntax to get the same behaviour. But
>>> it's a very subtle difference.
>>> 
>> Do you mean the multiple cases?
>> http://www.digitalmars.com/d/1.0/statement.html#SwitchStatement
> Yes, but make the "multiple cases" the *only* way to make case
> statements fallthrough. That would be the change.
> 
that /does not/ support the use case I have used:
switch(n)
{
case 1:
    some_func();
case 2:
    some_other_func();
}
    
    
More information about the Digitalmars-d-learn
mailing list