I've checked in the change to LogicalAnd.java and LogicalOr.java to implement short-circuited eval. Enjoy!
David Wood Policy Technologies Group IBM TJ Watson Research Center [email protected] 914-784-5123 (office), 914-396-6515 (mobile) From: Neeraj Joshi/Durham/i...@ibmus To: [email protected] Date: 05/27/2009 03:07 PM Subject: Re: short-circuited evaluation of conditions Hey David, There was no special reason to not have short circuit evaluation of the condition. I don't see any reason why we cannot change it to short circuit. Thanks Neeraj ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "The light at the end of the tunnel...may be you" Neeraj Joshi WebSphere XD - Compute Grid AIM, IBM Apache Imperius - http://incubator.apache.org/imperius ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From: David Wood/Watson/i...@ibmus To: [email protected] Date: 05/27/2009 02:56 PM Subject: short-circuited evaluation of conditions The spec is quite clear that for Decsion blocks && and ||, but is not clear about their handling in the Condition statement. In particular, the implementation evaluates both A && B, even when A returns false. Is there any reason to keep it this way or can we change it for the condition? David Wood Policy Technologies Group IBM TJ Watson Research Center [email protected] 914-784-5123 (office), 914-396-6515 (mobile)
