Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263788AbUACWee (ORCPT ); Sat, 3 Jan 2004 17:34:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263792AbUACWee (ORCPT ); Sat, 3 Jan 2004 17:34:34 -0500 Received: from hq.pm.waw.pl ([195.116.170.10]:26003 "EHLO hq.pm.waw.pl") by vger.kernel.org with ESMTP id S263788AbUACWeb (ORCPT ); Sat, 3 Jan 2004 17:34:31 -0500 To: Bill Davidsen Cc: Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: GCC 3.4 Heads-up References: <3FF5E952.70308@tmr.com> From: Krzysztof Halasa Date: Sat, 03 Jan 2004 22:11:36 +0100 In-Reply-To: <3FF5E952.70308@tmr.com> (Bill Davidsen's message of "Fri, 02 Jan 2004 16:57:38 -0500") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 848 Lines: 27 Bill Davidsen writes: > I would probably write > ( a ? b : c ) = d; > instead, having learned C when some compilers parsed ? wrong without > parens. Actually I can't imagine writing that at all, but at least > with parens humans can read it easily. Ugly code. > > Your suggestion is not portable, if b or c are declared "register" > there are compilers which will not allow taking the address, and gcc > will give you a warning. One can write as well: if (a) b = d; else c = d; Might be more readable and it is what the compiler does. -- Krzysztof Halasa, B*FH - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/