switch with enum
    Anon via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Wed Nov 25 13:38:25 PST 2015
    
    
  
On Wednesday, 25 November 2015 at 21:26:09 UTC, Meta wrote:
> On Wednesday, 25 November 2015 at 20:47:35 UTC, anonymous wrote:
>> Use `final switch`. Ordinary `switch`es need an explicit 
>> default case. `final switch`es have to cover all possibilities 
>> individually. Implicit default cases are not allowed.
>
>>Ordinary `switch`es need an explicit default case
>
> Since when?
Non-final switch without a default case was deprecated in 2011: 
http://dlang.org/changelog/2.054.html
    
    
More information about the Digitalmars-d-learn
mailing list