Date: Sat, 29 Jul 2000 11:54:56 +0100 From: David Malone <dwmalone@maths.tcd.ie> To: Mark Ovens <marko@freebsd.org> Cc: hackers@freebsd.org Subject: Re: ANSI compliance, gcc(1) and FreeBSD Message-ID: <20000729115456.A65276@walton.maths.tcd.ie> In-Reply-To: <20000729115153.C236@parish>; from marko@freebsd.org on Sat, Jul 29, 2000 at 11:51:53AM %2B0100 References: <20000729115153.C236@parish>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 29, 2000 at 11:51:53AM +0100, Mark Ovens wrote: > In the ANSI Standard (K&R 2e, A7.14 & A7.15) it states that, in the > case of the ``&&'' operator, the right operand is evaluated only if > the left operand evaluates to non-zero, and, for ``||'', the right > operand is evaluated only if the left operand evaluates to zero. > > My questions are: does gcc(1) honour this, and is it permitted to rely > on this behaviour in FreeBSD (base system)? Lots of C code would break if this wasn't honoured. Gcc deals with it just fine. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000729115456.A65276>