switch with enum

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Nov 25 13:26:02 PST 2015


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?


More information about the Digitalmars-d-learn mailing list