[Issue 10253] Switch and Final Switch do not work with subtyping

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 3 09:45:04 PDT 2013


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #3 from bearophile_hugs at eml.cc 2013-06-03 09:45:02 PDT ---
(In reply to comment #2)

> I *thought* that switching on a struct was already
> possible. But it isn't, so there's no ambiguity here.

The enhancement request for structs in switches is Issue 596 (Issue 596 also
asks for a standard method named unapply() that's called by the switch).

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