Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!purdue!bu-cs!buengc!bph From: bph@buengc.BU.EDU (Blair P. Houghton) Newsgroups: comp.lang.c Subject: Re: comma operator Message-ID: <3578@buengc.BU.EDU> Date: 2 Aug 89 00:29:04 GMT References: <10099@mpx2.mpx.com> <93@microsoft.UUCP> <10100@mpx2.mpx.com> <10562@smoke.BRL.MIL> <1989Jul24.194646.3012@nc386.uucp> <5630@pt.cs.cmu.edu> <1989Jul28.174033.12734@jarvis.csri.toronto.edu> <3553@buengc.BU.EDU> Reply-To: bph@buengc.bu.edu (Blair P. Houghton) Followup-To: comp.lang.c Organization: Boston Univ. Col. of Eng. Lines: 20 In article <3553@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes: >In article <1989Jul28.174033.12734@jarvis.csri.toronto.edu> flaps@dgp.toronto.edu (Alan J Rosenthal) writes: >> >>dandb@k.gp.cs.cmu.edu (Dean Rubine) writes: >>>I also occasionally use the comma to save braces: >>> if((f = fopen(file, "r")) == NULL) >>> fprintf(stderr, "Can't open %s\n", file), exit(2); >> >>Funny, I use braces to save commas: >> if ((f = fopen(file, "r")) == NULL) { >> fprintf(stderr, "Can't open %s\n", file); >> exit(2); >> } Forget I ever said anything. --Blair "Flames welcomed cheerily; I'm practicing my /dev/null backhand..."