unsigned policy (implicit conversions for complex?)
Joel C. Salomon
JoelCSalomon at Gmail.com
Mon Feb 12 20:33:05 PST 2007
Walter Bright wrote:
> Derek Parnell wrote:
>> Characters are not numbers.
>
> That's an enticing point of view, and it sounds good. But Pascal has
> that view, and my experience with it is it's one of the reasons Pascal
> sucks.
>
> Examples:
>
> 1) converting text <=> integers
> 2) converting case
Neither are pointers numbers, but
&a - &b
yields a usable number. So long as
x += c - 'a'
works, I don’t care if
'a' * '3'
breaks.
> 4) using characters as indices (isspace() for example)
Is there a way to declare the index type of an array?
--Joel
More information about the Digitalmars-d
mailing list