Newsgroups: comp.unix.wizards
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Old-fashioned assignment operators (was Re: braces
Message-ID: <1988Dec18.024240.28775@utzoo.uucp>
Organization: U of Toronto Zoology
References: <9076@smoke.BRL.MIL> <14020049@hpisod2.HP.COM> <212@UNIX386.Convergent.COM> <2151@uokmax.UUCP> <2155@uokmax.UUCP>
Date: Sun, 18 Dec 88 02:42:40 GMT

In article <2155@uokmax.UUCP> rmtodd@uokmax.UUCP (Richard Michael Todd) writes:
>  The question I have is, what exactly *is* the correct interpretation of
>x=-y in modern C? ...

The old-style assignment operators are long gone.  =- is the assignment
operator followed by the unary-negation operator.

>   Finally, I question why this business of checking for old-fashioned 
>assignment operators is still in Unix C compilers.  After all, V7 came
>out around 10 years ago!  Does anyone really have around any code that hasn't
>been converted to the new syntax by *now*?  

You would be surprised at the magnitude of the dusty-deck problem.  There
are undoubtedly sites that are still running ten-year-old *binaries*,
never mind sources.  I fear that it is probably still a good idea for
compilers to issue a warning message.
-- 
"God willing, we will return." |     Henry Spencer at U of Toronto Zoology
-Eugene Cernan, the Moon, 1972 | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
