Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site sjuvax.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!psuvax1!burdvax!sjuvax!jss From: jss@sjuvax.UUCP (J. Shapiro) Newsgroups: net.lang.c Subject: Re: <=> and obfuscation Message-ID: <856@sjuvax.UUCP> Date: Sat, 16-Feb-85 03:35:47 EST Article-I.D.: sjuvax.856 Posted: Sat Feb 16 03:35:47 1985 Date-Received: Mon, 18-Feb-85 06:37:29 EST References: <7699@brl-tgr.ARPA> <1293@bbncca.ARPA> <7853@brl-tgr.ARPA> <805@sjuvax.UUCP> <11927@gatech.UUCP>, <856@houxf.UUCP> Organization: Saint Josephs Univ. Phila., Pa. Lines: 19 [Aren't you hungry..?] > People have been arguing about the statement that > b ^= a ^= b ^= a; > gives 0 when a and b are the same. However, you've misunderstood the > original statement - the problem is not when a and b have the same VALUE, > but when they have the same ADDRESS. > -- > Bill Stewart ho95c!wcs AT&T Bell Labs, Holmdel NJ > HO 4K-435 x0705 (201-949-0705) > {allegra, ucbvax!ihnp4, decvax!harpo}!houxf!stewart I might suggest that if you are foolish enough to try to swap a and b where &a == &b, you deserve what you get... There *is* a certain poetic justice to it. ;-) Jon Shapiro Haverford College