Though I don't have the standard at hand I've seen several references point that operator -> has higher precedence than unary * (dereference).
That's right...
Then I would always have thought that
*a->b
Is equivalent to
(*a)->b
No, if this is the case then * has a higher precedence that -> which
contradict what you said above.
Also this is meaningless, it should be (*a).b
but apparently it should be
*(a->b)
Which which is right and why?
The second one
Thanks,
No, if this is the case then * has a higher precedence that -> which contradict what you said above.
This is just what I thought, it was just one of those occasions where
the feelings contradict the logic. As (nearly) always the logic turns
out to be right.