Re: why use -> (not .) with pointers?





Richard Tobin wrote:
[snip]
>
> I think the answer is just that they are different operations so C has
> different names for them. a->b is equivalent to (*a).b.
Don't you think that was what I meant, albeit in a roundabout way?
You don't I'll assume for now :)

<i_think_remotely_O(n)T(opic)>
In any case, this fires my curiosity. What if we did have the _same_
operator? Would the compiler not have to extra work?
</i_think_remotely_O(n)T(opic)>
> A less
> explicit language than C might confound these, but C doesn't.

.



Relevant Pages

  • Re: why use -> (not .) with pointers?
    ... Richard Tobin wrote: ... > explicit language than C might confound these, ... Prev by Date: ...
    (comp.lang.c)
  • Re: casts
    ... Richard Tobin said: ... the real deficiencies of C that its mechanism for polymorphism - ... polymorphism, I know where to ...
    (comp.lang.c)
  • Re: priveledged stranger?
    ... that requires an eval abuse. ... Richard. ... Prev by Date: ...
    (comp.lang.javascript)
  • Re: Float comparison
    ... Richard Tobin said: ... root of 2], just not as a floating point number. ...
    (comp.lang.c)
  • Re: Does the video in this clip work for you?
    ... Trim & respond inline (please don't top post or snip everything) ... Prev by Date: ...
    (microsoft.public.win32.programmer.directx.video)