[Issue 5714] case ranges in final switches
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 21 15:36:57 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=5714
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #4 from Nick Treleaven <nick at geany.org> ---
(In reply to Andrej Mitrovic from comment #1)
> And it also limits the number of cases to 256 (for optimization purposes?).
>
> So a final switch would only work on byte-types.
See issue 15279 which seems to be an implementation issue rather than a design
decision (the pull comment suggests lowering case range statements to an
if/else instead).
--
More information about the Digitalmars-d-bugs
mailing list