Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site phri.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxb!mhuxn!mhuxm!mhuxj!houxm!vax135!timeinc!phri!roy
From: roy@phri.UUCP (Roy Smith)
Newsgroups: net.lang.c
Subject: Re: using ^= to swap two integers (enough already)
Message-ID: <173@phri.UUCP>
Date: Mon, 11-Feb-85 10:50:07 EST
Article-I.D.: phri.173
Posted: Mon Feb 11 10:50:07 1985
Date-Received: Wed, 13-Feb-85 03:56:16 EST
References: <11950@gatech.UUCP>
Distribution: net
Organization: Public Health Research Inst. (NY, NY)
Lines: 17


>To exchange two items without an intermediate variable, try:
> 	b ^= a ^= b ^= a
> [and so on and so on]

Who cares?  The xor trick may be cute, but if any programmer that works
for me tries to put that kind of crap in his code to make it run faster,
s/he should probably start looking for another job.  Can we move this to
net.lang.c.worthless.trivia?
-- 

The opinions expressed herein do not necessarily reflect
the views of the Public Health Research Institute.

allegra!vax135!timeinc\
   cmcl2!rocky2!cubsvax>!phri!roy (Roy Smith)
         ihnp4!timeinc/