Skip site navigation (1) Skip section navigation (2)

Re: sparse (static analyzer) report

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: sparse (static analyzer) report
Date: 2005-01-15 20:38:08
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Sat, Jan 15, 2005 at 10:44:48 -0500,
  Greg Stark <gsstark(at)mit(dot)edu> wrote:
> What I miss most in both C and Java is the lispish ability to write
> expressions like:
>  foo = bar() || baz() || qux();

Are you sure that C doesn't guarenty short circuit evaluation?
I don't have my C reference handy, but my memory is that evaluation
will stop after the first function call that returns true in the
above expression.

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2005-01-15 20:45:12
Subject: Re: sparse (static analyzer) report
Previous:From: Marc G. FournierDate: 2005-01-15 20:30:28
Subject: Re: FATAL: catalog is missing 1 attribute(s) for relid

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group