Re: switch case range inclusive or exclusive?

2020-04-06 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/6/20 5:50 AM, WebFreak001 wrote: 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 p

switch case range inclusive or exclusive?

2020-04-06 Thread WebFreak001 via Digitalmars-d-learn
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 n