[Issue 4349] Deprecate automatic case fallthrough
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Jan  2 04:35:27 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=4349
bearophile_hugs at eml.cc changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
--- Comment #7 from bearophile_hugs at eml.cc 2012-01-02 04:35:19 PST ---
(In reply to comment #6)
> This one is ready to be closed, right?
I don't like a lot the presence of a special case to the D rule that implicit
fall-through is disallowed in D (this code compiles):
void main() {
    int x;
    switch (x) {
        case 1: /* x++; break; */
        case 2: break;
        default: break;
    }
}
But I presume you are right, so I close this issue.
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list