Bit Switching - How?

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Apr 8 09:06:55 AEST 1989


In article <626 at gonzo.UUCP> daveb at gonzo.UUCP (Dave Brower) writes:
>>		x ^= z, y^= z;		/* flip those that do */
-		x ^= z; 		/* flip those that do */
-		y^= z;
-If you don't see _why_ this is the right way, you'd better not work on a
-project with anyone but yourself.

Hey, now, it's not all that clear cut.  Conceptually the two
assignments should occur in parallel; for some people using , to
separate such assignments is the "natural" way to express that.



More information about the Comp.unix.questions mailing list