Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pucc-h Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!ihnp4!inuxc!pur-ee!CS-Mordred!Pucc-H:abv From: abv@pucc-h (David Stevens) Newsgroups: net.lang.c Subject: Re: Standard extensions Message-ID: <1442@pucc-h> Date: Sat, 3-Nov-84 09:23:06 EST Article-I.D.: pucc-h.1442 Posted: Sat Nov 3 09:23:06 1984 Date-Received: Tue, 6-Nov-84 04:10:30 EST References: <> <352@digi-g.UUCP> Organization: Purdue University Computing Center Lines: 15 The "opop" syntax is for allowing short circuit evaluation of boolean expressions. Thus && is there so that C can allow the programmer to optimize, where apropriate. Exclusive Or, on the other hand, requires that both operands be evaluated, so ^^ has no place. Since boolean expressions evaluate to 1 or 0, bitwise operations perform the same function as a non-short-circuit evaluation, and so & does it all. I don't see where you lose by using just ^. Of course, tese are all my opinions about the reasoning behind it, since they didn't ask me. ---------- David L Stevens {decvax|harpo|ihnp4|inuxc|seismo|ucbvax}!pur-ee!pucc-h:abv The oppinions expressed above are not necessarily my own, or anyone else's.