Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!caip!sri-spam!nike!ucbcad!ucbvax!hplabs!sdcrdcf!trwrb!desint!geoff From: geoff@desint.UUCP (Geoff Kuenning) Newsgroups: net.lang.c,net.bugs Subject: Re: e1?(void_e2):(void_e3) so, is it legal or what? Message-ID: <243@desint.UUCP> Date: Mon, 11-Aug-86 22:40:18 EDT Article-I.D.: desint.243 Posted: Mon Aug 11 22:40:18 1986 Date-Received: Wed, 13-Aug-86 01:22:01 EDT References: <155@cbnap.UUCP> <499@dg_rtp.UUCP> <518@hadron.UUCP> Reply-To: geoff@desint.UUCP (Geoff Kuenning) Organization: SAH Consulting, Manhattan Beach, CA Lines: 19 Xref: mnetor net.lang.c:5620 net.bugs:318 While all of this discussion is very interesting and is important to achieving a precise language definition, let us not forget that there is *no* reason to ever write this particular expression. Anywhere it's useful, you can just write if (e1) void_e2; else void_e3; This is better style anyway; it makes use of a construct that people are much more used to, and it makes it clearer that what you are doing is picking one subroutine call over another, rather than something more subtle. If you really care about using precious lines, you can even put it on one line. -- Geoff Kuenning {hplabs,ihnp4}!trwrb!desint!geoff