Tom St Denis <> scribbled the following:
> "Eric Sosman" <> wrote in message
> news:...
>> I was nodding my head and agreeing with you right up
>> until that final [remark]. Would you mind explaining just
>> what it is "we all know," because I can't figure it out.
>> What's an "array expression," and what has it to do with
>> the int-ness of anything?
> When an expression is used to index an array...e.g.
> int *p;
> p[(some expression)] = (some other expression);
> The expression on the left has to [technically] evaluate to an integer "int"
> data type. I'm fairly certain it's a rule but I couldn't quote you the
> section/page num of it.
AFAIK you're wrong. It doesn't have to evaluate to int. It merely has to
evaluate to some type that is assignable to int. For example, p[0l]
should be valid, as should be p[*"Hello world!"]. What about p[0.0]?
But, AYCS, that's only AFAIK, and it might be that WIKIW. YHBW. HTH,
HAND.
--
/-- Joona Palaste () ------------- Finland --------\
\--
http://www.helsinki.fi/~palaste --------------------- rules! --------/
"This is a personnel commuter."
- Train driver in Scientific American