FreeBSD Port: qmail-1.03_3

Erik Trulsson ertr1013 at student.uu.se
Wed Jan 26 03:33:36 PST 2005


On Wed, Jan 26, 2005 at 12:13:37PM +0100, Matthias Andree wrote:
> Erik Trulsson <ertr1013 at student.uu.se> writes:
> 
> > On Tue, Jan 25, 2005 at 09:34:58PM -0800, Michael Sierchio wrote:
> >> ( 1 && 0 || 1 ) will ALWAYS evaluate to 1 on any ANSI C compiler.
> >
> > No, it will evaluate to 0.
> 
> It will evaluate to 1, as you're correctly stating...

Yes, right you are.  Sorry about that.

The interesting situation in this context seems to be ( 0 && 0 || 1)
which evaluates to 1 versus ( 0 && (0 || 1) which evaluates to 0.
Thereby demonstrating that the patch under discussion *does* change the
semantics - and probably for the better as far as I can tell.



-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at student.uu.se


More information about the freebsd-ports mailing list