Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.unix.questions Subject: Re: Bit Switching - How? Message-ID: <10007@smoke.BRL.MIL> Date: 7 Apr 89 23:06:55 GMT References: <18944@adm.BRL.MIL> <626@gonzo.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 In article <626@gonzo.UUCP> daveb@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.