old-style assignment operators

Ray Butterworth rbutterworth at watmath.waterloo.edu
Wed Apr 27 00:02:41 AEST 1988


In article <1988Apr11.202721.20786 at utzoo.uucp>, henry at utzoo.uucp (Henry Spencer) writes:
> X3J11 has removed the old-style assignments operators (e.g. =-) from the
> language (and has also required the new-style operators to be single tokens).
> However, code containing the old operators is still around, and it is just
> as well if compilers continue to issue warnings about the matter.

The real problem isn't with compilers that issue warnings,
it is with compilers (such as BSD's) that issue the warning and
then go ahead and interpret "x=-1" as "x -= 1".
Issue the warning, fine, but please interpret it the "correct" way,
not the way that has been wrong for a decade.  If they had done that
all along, the old code would have been fixed by now instead of
being left as it was since it still compiles ok if you ignore the
warings.



More information about the Comp.lang.c mailing list