Case Range Statement ..

Walter Bright newshound1 at digitalmars.com
Tue Jul 7 12:36:36 PDT 2009


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.



More information about the Digitalmars-d mailing list