Bruno Wolff III <[EMAIL PROTECTED]> writes:
>   Greg Stark <[EMAIL PROTECTED]> 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.

Yeah, but you can only find out the boolean result, not the actually
returned value --- that is, foo will get 1 or 0.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Reply via email to