Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: C blocks Message-ID: <6890@brl-smoke.ARPA> Date: 20 Dec 87 01:32:04 GMT References: <470@PT.CS.CMU.EDU> <1966@chinet.UUCP> <970@csun.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <970@csun.UUCP> aeusemrs@csun.UUCP (Mike Stump) writes: >Nice, I think they missed something though because they do not appear to >want the more general form: >#define max(a, b) ({int _a=(a), _b=(b); return _a > _b ? _a : _b; }) But "return" already has meaning inside a block, so trying to use it for some other purpose is potentially confusing, at least. C as it has existed for quite some time now uses both expressions AND statements. Perhaps when you design the language "D" you can change this.