Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!mcsun!ukc!axion!uzi-9mm.fulcrum.bt.co.uk!simonp From: simonp@fulcrum.bt.co.uk (Simon Parsons) Newsgroups: comp.lang.c Subject: Re: if this legal code? Message-ID: Date: 26 Jun 91 13:13:59 GMT References: <1991Jun25.235904.23103@netcom.COM> Sender: news@fulcrum.bt.co.uk (News with an UZI) Organization: Fulcrum Communications Ltd., Birmingham, England Lines: 25 In-Reply-To: aed@netcom.COM's message of 25 Jun 91 23: 59:04 GMT >>>>> On 25 Jun 91 23:59:04 GMT, aed@netcom.COM (Andrew Davidson) said: Andrew> Hi here is a piece of code I am responceible for maintaining. Andrew> It compiles and runs correctly on the sun and dos using the msc Andrew> 5.1 compiler Andrew> if (! ((tt = testEntry.code - testCode) || (tt = testEntry.leg Andrew> - testLeg))) { .... } Andrew> does the language guarentee that if testEntry.code -testCode is Andrew> not equal to 0, that the second assignment (tt = testEntry.leg Andrew> - testLeg) will not be executed? YES Andrew> will the -O compiler option flag effect this?? I hope not!!! Simon -- "Hey girl, as I've always said, I prefer your lips red, Not what the good lord made, but what he intended." Simon Parsons, Fulcrum Communications Ltd.- simonp@fulcrum.bt.co.uk