Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site utcsri.UUCP Path: utzoo!utcsri!greg From: greg@utcsri.UUCP (Gregory Smith) Newsgroups: net.lang.c Subject: Re: C Compiler bug Message-ID: <3162@utcsri.UUCP> Date: Fri, 25-Jul-86 12:12:49 EDT Article-I.D.: utcsri.3162 Posted: Fri Jul 25 12:12:49 1986 Date-Received: Fri, 25-Jul-86 12:44:49 EDT References: <501@bunny.UUCP> <500@copper.UUCP> Reply-To: greg@utcsri.UUCP (Gregory Smith) Distribution: net Organization: CSRI, University of Toronto Lines: 20 Summary: >> Please try this code on your flavor of C compiler... >(followed by code demonstrating essentially >> i = i/2.5; >vs. >> i /= 2.5; > >The answer is absolutely unequivocal on this point. A compiler >that does not treat i=i/float and i/=float identically is broken, >although many compilers are so broken. This question was >discussed to death on the net a year or so ago... Well, I am definitely adding "(int) op= (float) and related things to my list of Things Not To Do If I Want To Make Life Easier. This can be considered "defensive programming". -- "You'll need more than a Tylenol if you don't tell me where my father is!" - The Ice Pirates ---------------------------------------------------------------------- Greg Smith University of Toronto UUCP: ..utzoo!utcsri!greg