Re: xor condition
On 07/16/2011 08:59 PM, Matt Benson wrote: xor(true, false) == true xor(true, false, true) == false xor(true, false, true, false) == false Is this correct? Follows the usual semantics; cf.: http://en.wikipedia.org/wiki/Exclusive_or#Associativity_and_commutativity It would seem that semantically an xor over multiple nested conditions should mean that exactly one value should evaluate true in order for the xor operation to yield truth. Which is in fact the case in the examples you mentioned, but probably you are thinking of xor(true, true, true) == true which is consistent with the algebraic definition, and the behavior of Java's ^ operator for that matter. If you wanted a condition with the semantics you describe, it should be named something else. - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org
Jose Roberto Neves/EMBRAER/BR is out of the office.
I will be out of the office starting 19/07/2011 and will not return until 05/08/2011. BRemfont size='2' face='Arial'hrThis message is intended solely for the use of its addressee and may contain privileged or confidential information. If you are not the addressee you should not distribute, copy or file this message. In this case, please notify the sender and destroy its contents immediately.BREsta mensagem é para uso exclusivo de seu destinatário e pode conter informações privilegiadas e confidenciais. Se você não é o destinatário não deve distribuir, copiar ou arquivar a mensagem. Neste caso, por favor, notifique o remetente da mesma e destrua imediatamente a mensagem./font/em
Re: xor condition
On Wed, Jul 20, 2011 at 5:44 AM, Jesse Glick jesse.gl...@oracle.com wrote: On 07/16/2011 08:59 PM, Matt Benson wrote: xor(true, false) == true xor(true, false, true) == false xor(true, false, true, false) == false Is this correct? Follows the usual semantics; cf.: http://en.wikipedia.org/wiki/Exclusive_or#Associativity_and_commutativity It would seem that semantically an xor over multiple nested conditions should mean that exactly one value should evaluate true in order for the xor operation to yield truth. Which is in fact the case in the examples you mentioned, but probably you are thinking of xor(true, true, true) == true which is consistent with the algebraic definition, and the behavior of Java's ^ operator for that matter. If you wanted a condition with the semantics you describe, it should be named something else. Thanks, Jesse--I think you cleared it up in my head: and(x, y, z) = x y z or(x, y, z) = x | y | z xor(x, y, z) = x ^ y ^ z Thanks! Matt - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org
Status of AntUnit trunk?
Hi, the last AntUnit release has been made almost three years ago. In the meantime we've accumulated a few changes, one of which is needed by the EasyAnt folks (and I needed another one recently to debug some RAT Anttasks error). Therefore I'm entertaining the idea of a 1.2 release. AFAIR Gilles has put significant effort into a bridge that makes it possible to run AntUnit tests from within a JUnit test runner but I'm unsure of its state. Stefan - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org