[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 07:34:51 PDT 2013


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



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-09-16 07:34:50 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.

You mean *in release mode*, right? It currently throws in non-release mode, it
doesn't throw in release mode.

But what is the above code supposed to do if not throw in both cases?

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