[Issue 14931] switch doesn't work with any pointers
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Aug 18 17:48:40 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14931
--- Comment #5 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to yebblies from comment #4)
> (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.
>
> There is no guarantee that integral switches get turned into jump tables.
Understood, thanks. Just handle them the same is all.
--
More information about the Digitalmars-d-bugs
mailing list