Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!brl-adm!umd5!mimsy!rab From: rab@mimsy.UUCP (Bob Bruce) Newsgroups: comp.lang.c Subject: Re: comma operator Message-ID: <10264@mimsy.UUCP> Date: 20 Jan 88 16:05:42 GMT References: <11335@brl-adm.ARPA> Reply-To: rab@mimsy.UUCP (Bob Bruce) Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 21 In article <11335@brl-adm.ARPA> mrd@sun.mcs.clarkson.EDU (Michael R. DeCorte) writes: >I would like something to the effect > >int x; > >printf("%d\n", {int a;.....; a=x;}); > >in others words, a block can return a value. Gee think of the #defines >you could make Some compilers, including the Gnu compiler from the Free Software Foundation, offer this as a language extension. It comes in handy, especially when writing complicated macros. >Michael DeCorte >mrd@clutx.clarkson.edu >mrd@clutx.bitnet Bob Bruce rab@mimsy.umd.edu uunet!mimsy!rab