ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject RE: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs/condition XorTest.java
Date Mon, 24 Jan 2005 20:04:36 GMT
--- Dominique Devienne <DDevienne@lgc.com> wrote:
[SNIP]
> 
> I find the >2 conditions case weird. Is that usual
> to extend
[SNIP]
> 
> 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:

http://mathworld.wolfram.com/XOR.html

Which says, among other things:

(quote)
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.  ;)

-Matt
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> dev-help@ant.apache.org
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message