Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdahl!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.lang.c Subject: Re: AT&T C compilers Message-ID: <1118@auspex.UUCP> Date: 5 Mar 89 02:15:16 GMT References: <569@marob.MASA.COM> <1071@auspex.UUCP> <1109@wpi.wpi.edu> <9761@smoke.BRL.MIL> <1187@wpi.wpi.edu> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 21 > The c compiler that came with the system VS Gnu-c >% cc tmp.c >"tmp.c", line 4: warning: old-fashioned assignment operator You have an old C compiler. Neither the System V version of PCC nor the one shipped with SunOS 4.0 support old-fashioned assignment operators; "x=-1" is interpreted by both as "assign -1 to x". >Atleast UNIX could have implemented the ANSI Prototypes and gotten rid >of this bug. I don't know what "the ANSI Prototypes" means here, but if it means "function prototypes" it wouldn't have made a bit of difference to the interpretation of "x=-1". If it were a full (p)ANS C compiler, it would have interpreted "x=-1" properly, but just implementing prototypes does not a full (p)ANS C compiler make. There are several different UNIX C compilers, not least because there are several different architectures that support UNIX. Not all of them have been "modernized" to the same degree. The BSD compiler doesn't seem to have been modernized in this regard.