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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 3 07:16:11 PDT 2013


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



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-03 07:16:11 PDT ---
(In reply to comment #1)
> Btw, if there is ever an ambiguity problem on whether to switch on the struct
> value or the 'alias this' value, then perhaps this feature should only be
> enabled if the struct has only one field which is the 'alias this' field?
> 
> Think of it as an "eponymous struct" (maybe that's a bad terminology..).

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

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