dmd 1.046 and 2.031 releases

BCS none at anon.com
Mon Jul 6 21:22:24 PDT 2009


Hello Ary,

> But that's kind of redundant:
> 
> case 1: goto case 11:
> case 11: goto case 111:
> case 111: goto case 1111:
> case 1111:
> doIt();
> don't you think?
> 

case 1, 11, 111, 1111:
 doIt();

> If you change the case expression, you must change it twice.
> 
> Why not:
> 
> case 1: continue case;
> case 11: continue case;
> etc.?
> 

Or how about the way c# does it: consecutive cases are treated as a single 
target. For that matter, it's debatable if going from one case label to an 
immediately following one even constitutes a fall through considering they 
are attached to the following statement rater than being statements in there 
own right.




More information about the Digitalmars-d-announce mailing list