Re: [classad-users] Newbie Question: Evaluation of logical expressions


Date: Mon, 4 Feb 2002 08:11:01 -0600 (CST)
From: Alain Aslag Roy <roy@xxxxxxxxxxx>
Subject: Re: [classad-users] Newbie Question: Evaluation of logical expressions
>can someone tell me, if classadd Operators && (logical and) and || (logical
>or) always compute their operands or if there's a shortcut as in the C
>programming language?

They are always evaluated, there is no shortcut.

You can see this for yourself from the _Evaluate member functions in 
operators.h: all operands are evaluated, then the operator is evaluated.

-alain


---------------------------------------------------------------------
Alain Roy                             University of Wisconsin-Madison
Condor Project Research               Department of Computer Sciences
roy@xxxxxxxxxxx                       1210 W. Dayton St. Rm #3393
(608) 265-5736                        Madison, WI 53706-1685



[← Prev in Thread] Current Thread [Next in Thread→]