Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!ulysses!allegra!mit-eddie!ll-xn!ames!sdcsvax!ucsdhub!hp-sdd!hplabs!hpcea!hpfcdc!boemker From: boemker@hpfcdc.UUCP Newsgroups: comp.lang.c Subject: Re: comma operator Message-ID: <5080013@hpfcdc.HP.COM> Date: 14 Jan 88 23:16:16 GMT References: <3819@sigi.Colorado.EDU> Organization: HP Ft. Collins, Co. Lines: 10 Posted: Thu Jan 14 18:16:16 1988 > Perhaps the most common use is when you're writing a macro: > #define SWAP(a, b, temp) temp=a, a=b, b=temp > You can't write this the "obvious" way: > #define SWAP(a, b, temp) {temp=a, a=b, b=temp} > because, someone will write > if (test(a, b)) SWAP(a, b, temp); > else abort(); OK, I'm feeling like a brick... Why can't I write it the "obvious" way?