Return-Path: X-Original-To: apmail-ant-dev-archive@www.apache.org Delivered-To: apmail-ant-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C3AE6784 for ; Sun, 17 Jul 2011 03:22:46 +0000 (UTC) Received: (qmail 62614 invoked by uid 500); 17 Jul 2011 03:22:41 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 62272 invoked by uid 500); 17 Jul 2011 03:22:31 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 62262 invoked by uid 99); 17 Jul 2011 03:22:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Jul 2011 03:22:25 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Jul 2011 03:22:18 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 9DD2F289801D for ; Sun, 17 Jul 2011 05:21:57 +0200 (CEST) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tHyZ24d0KImE for ; Sun, 17 Jul 2011 05:21:57 +0200 (CEST) Received: by samaflost.de (Postfix, from userid 1000) id 2FA7E289801E; Sun, 17 Jul 2011 05:21:57 +0200 (CEST) From: Stefan Bodewig To: dev@ant.apache.org Subject: Re: xor condition References: X-Draft-From: ("nnfolder:mail.jakarta-ant" 104325) Date: Sun, 17 Jul 2011 05:21:57 +0200 In-Reply-To: (Matt Benson's message of "Sat, 16 Jul 2011 19:59:35 -0500") Message-ID: <87zkkdwq0a.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org On 2011-07-17, Matt Benson wrote: > Currently each nested condition is xor'd against the cumulative result, thus: > xor(true, false) == true > xor(true, false, true) == false > xor(true, false, true, false) == false > Is this correct? 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. While my gut feeling agrees with what you describe the documentation of the xor description actually says ,---- | It only evaluates to true if an odd number of nested conditions are true. `---- If you need the "other kind of xor" then a new container would be required. "exactlyOneOf" or something similar? Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org