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: 20050115203808.GA32196@wolff.to (view raw or flat)
Thread:
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

Responses

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-2014 The PostgreSQL Global Development Group