[Issue 6176] [tdpl] Cannot use string variables in case expressions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 18 09:53:16 PST 2012


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



--- Comment #18 from bearophile_hugs at eml.cc 2012-01-18 09:53:06 PST ---
(In reply to comment #17)

> We already have an enum switch - it's called final switch.

The purpose of this idea is different. A final switch requires to list all
possibilities and it forbids the default case.


> Inventing something new and calling it enum switch will be confusing.

I see.


> What would it be anyway - just an optional check for the programmer
> similar to the override attribute?

override will stop being optional, see issue 3836. Likewise this was not meant
to be optional, eventually.

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