Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!nrl-cmf!cmcl2!husc6!linus!philabs!pwa-b!mmintl!franka From: franka@mmintl.UUCP (Frank Adams) Newsgroups: comp.lang.c Subject: Re: comma operator (really about xor) Message-ID: <2701@mmintl.UUCP> Date: 2 Feb 88 14:11:53 GMT References: <3819@sigi.Colorado.EDU> <5080013@hpfcdc.HP.COM> <7120@brl-smoke.ARPA> <3476@ihlpf.ATT.COM> <564@cresswell.quintus.UUCP> <131@puivax.UUCP> Reply-To: franka@mmintl.UUCP (Frank Adams) Organization: Multimate International, E. Hartford, CT. Lines: 14 In article <131@puivax.UUCP> ian@puivax.UUCP (Ian Wilson) writes: >The transformation works whatever the values of A & B happen to >be - exclusive or being the only information-preserving logical >operation. A quibble -- exclusive or is not the only information-preserving (binary) logical operation. Equivalence also has this property. One can also use equivalence instead of exclusive or in the exchange algorithm. Of course, equivalence isn't really very different from exclusive or -- just interchange the role of the zeros and ones, and you get one from the other. -- Frank Adams ihnp4!philabs!pwa-b!mmintl!franka Ashton-Tate 52 Oakland Ave North E. Hartford, CT 06108