Re: Question about ECPGset_noind_null() and ECPGis_noind_null()

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Boszormenyi Zoltan <zb(at)cybertec(dot)at>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org, Hans-Juergen Schoenig <hs(at)cybertec(dot)at>
Subject: Re: Question about ECPGset_noind_null() and ECPGis_noind_null()
Date: 2009-11-19 20:38:53
Message-ID: 4B05ACDD.2080603@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Boszormenyi Zoltan wrote:
>
> Is it *really* a bug? I recalled a comment from my C teacher
> in '92 or '93 about this exact issue, that the prefix/postfix
> increment/decrement operators are executed in the
> statement in an implementation-defined order,
>

Not if they come after a short-circuit operator such as && - after all,
that's what short-circuit evaluation implies. If the left hand operand
of && is false the right hand should not be evaluated at all.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chris Browne 2009-11-19 20:39:19 Re: Listen / Notify - what to do when the queue is full
Previous Message Boszormenyi Zoltan 2009-11-19 20:36:29 Re: Question about ECPGset_noind_null() and ECPGis_noind_null()