ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject RE: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs/condition
Date Mon, 24 Jan 2005 20:04:36 GMT
--- Dominique Devienne <> wrote:
> I find the >2 conditions case weird. Is that usual
> to extend
> Am I the only one who thinks that way? I guess I've
> never run
> across an XOR conditional with more than 2
> operands... --DD

DD, I would have thought so too, but I googled for
"xor" and the first hit was:

Which says, among other things:

For multiple arguments, XOR is defined to be true if
an odd number of its arguments are true, and false
otherwise. This definition is quite common in computer
science, where XOR is usually thought of as addition
modulo 2. In this context, it arises in polynomial
algebra modulo 2, arithmetic circuits with a full
adder, and in parity generating or checking. While
this means that the multiargument "XOR" can no longer
be thought of as "the exclusive OR" operation, this
form is rarely used in mathematical logic and so does
not cause very much confusion.
(end quote)

I guess we learned something today.  ;)

> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message