Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!cmcl2!philabs!pwa-b!mmintl!franka From: franka@mmintl.UUCP (Frank Adams) Newsgroups: net.lang.c Subject: Re: Long Longs Message-ID: <1170@mmintl.UUCP> Date: Wed, 5-Mar-86 14:40:49 EST Article-I.D.: mmintl.1170 Posted: Wed Mar 5 14:40:49 1986 Date-Received: Mon, 10-Mar-86 00:09:46 EST References: <1434@brl-smoke.ARPA> Reply-To: franka@mmintl.UUCP (Frank Adams) Organization: Multimate International, E. Hartford, CT Lines: 29 In article <1434@brl-smoke.ARPA> jon@cit-vax.ARPA (Jonathan P. Leech) writes: > Final cautionary note: [ from K&R Appendix A Sec. 7 (pg 185) >Expressions ]: > > "... Expressions involving a commutative and associative operator > (*, +, &, |, ^) may be rearranged arbitrarily, even in the > presence of parentheses; to force a particular order of evaluation > an explicit temporary must be used." This would let the compiler rearrange a = (b * c) * d; to a = b * (c * d); but it does not permit a = (b * c) / d; to be rearranged to a = b * (c / d); at least if b, c, and d are of integral type. Frank Adams ihnp4!philabs!pwa-b!mmintl!franka Multimate International 52 Oakland Ave North E. Hartford, CT 06108