In the D spec it says for CaseRangeStatement:
https://dlang.org/spec/statement.html#CaseRangeStatement

A CaseRangeStatement is a shorthand for listing a series of case statements from FirstExp to LastExp.

does this mean LastExp is inclusive or exclusive part of the range?

I think the spec needs to be improved a little bit here for clarity.
  • switch case range inclusive o... WebFreak001 via Digitalmars-d-learn

Reply via email to