[Issue 11051] Unmatched case in a final switch should throw in both release and non-release mode

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 16 09:03:54 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11051



--- Comment #6 from Orvid King <blah38621 at gmail.com> 2013-09-16 09:03:51 PDT ---
(In reply to comment #1)
> Letting it throw an error in non-release mode kills some of optimization you
> are supposed to have using a final switch, so I am not sure it's a good idea.

But an error isn't covered by the nothrow contract, so you wouldn't be able to
optimize that anyways.

-- 
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