switch case range inclusive or exclusive?
WebFreak001
d.forum at webfreak.org
Mon Apr 6 09:50:21 UTC 2020
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.
More information about the Digitalmars-d-learn
mailing list