[Issue 14931] switch doesn't work with any pointers

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Aug 19 00:49:54 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14931

--- Comment #11 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> ---
(In reply to Andrei Alexandrescu from comment #3)
> Yah, accept it and subject it to the usual assumptions and optimizations
> that go for equivalent integral-based switch statements.

If you go for equivalence, enum-based switch will be faster, because it's not
equivalent to runtime switch.

--


More information about the Digitalmars-d-bugs mailing list