why p->member ?

Karl Heuer karl at haddock.ISC.COM
Wed Aug 17 01:27:00 AEST 1988


In article <968 at infbs.UUCP> neitzel at infbs (Martin Neitzel) writes:
>I for one would enjoy a corresponding assignment ... "node ->= next".

It could be done, but it doesn't really fit well into the language.  "->"
isn't an binary operator in the usual sense, since its right operand isn't
an expression.  Similarly, you can't write "x -=" to mean "x = -x".

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint
(Yes, the above can be written "x *= -1", but that's not the point.)



More information about the Comp.lang.c mailing list