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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

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