Path: utzoo!attcan!uunet!mcvax!kth!draken!tut!hydra!kreeta!grano From: grano@kreeta.cs.Helsinki.FI (Juhani Grano) Newsgroups: comp.lang.c Subject: Re: comma operator Message-ID: <2005@hydra.Helsinki.FI> Date: 1 Aug 89 22:09:35 GMT Sender: news@cs.Helsinki.FI Organization: University of Helsinki, Finland Lines: 24 Well, sometimes the comma operator _is_ nice, in my opinion. Consider the following example: foo = 0; bar = 0; for (i=0; i < burp; i++) { rotten_action(foo, bar); foo++; bar++; } Using the comma operator here produces quite readable result: for (foo=0, bar=0, i=0; i < burp; i++, foo++, bar++) rotten_action(foo, bar); But, ah well, I can already imagine the 2<<15 flames I'm gonna receive :-). Kari. ------------------------------ Kari Grano University of Helsinki, Finland email to: grano@cs.helsinki.fi Department of CS "I've got a thousand telephones that don't ring"