Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site fluke.UUCP Path: utzoo!linus!security!genrad!decvax!microsoft!uw-beaver!ssc-vax!fluke!kurt From: kurt@fluke.UUCP (Kurt Guntheroth) Newsgroups: net.lang.c Subject: Re: Must useless expressions be evaluated? Message-ID: <762@vax2.fluke.UUCP> Date: Mon, 17-Oct-83 12:05:08 EDT Article-I.D.: vax2.762 Posted: Mon Oct 17 12:05:08 1983 Date-Received: Fri, 21-Oct-83 05:29:56 EDT References: <2060@rabbit.UUCP> Organization: John Fluke Mfg. Co., Everett, Wash Lines: 13 Of course it is legitimate to not do ANY operation which has no side effects. By definition, if the operation has no side effects, the presence or absense of the operation will not change the state of execution except perhaps by changing the amount of time execution takes. It must be remembered though, that all the operands of a dead operation must be evaluated if the operands cause side effects. -- Kurt Guntheroth John Fluke Mfg. Co., Inc. {uw-beaver,decvax!microsof,ucbvax!lbl-csam,allegra,ssc-vax}!fluke!kurt