bearophile wrote:
Walter Bright Wrote:I like: a .. b+1 to mean inclusive range.Me too, but does it work when the upper interval is int.max, char.max, ulong.max, ucent.max, etc?
Nope. Wrap around is always a special case, not just for ranges. It's in the nature of 2's complement arithmetic.