W3C home > Mailing lists > Public > www-xpath-comments@w3.org > January to March 2000

Re: Does this make sense?

From: James Clark <jjc@jclark.com>
Date: Sun, 26 Mar 2000 20:04:17 +0700
Message-ID: <38DE0AD1.63E33766@jclark.com>
To: gmarcy@us.ibm.com
CC: www-xpath-comments@w3.org
--5 is equivalent to -(-5).  There was a previous thread about the
precise meaning of unary minus: check the archive.  It does what you
would expect.

gmarcy@us.ibm.com wrote:
> 
> The production for
> 
> [27] UnaryExpr ::= UnionExpr  | '-' UnaryExpr
> 
> seems to imply that --5 (or -----5 for that matter) are UnaryExprs.  Since
> the
> spec seems to be a little light on defining what "negation" means, and the
> wording seems to always be something like "preceded by a minus sign"
> and "an optional minus sign", does this seem like something worth bringing
> up as an issue?  Is the behavior the obvious (or not ::smile::) repeated
> application of negation, i.e. even occurrences of minus signs cancel each
> other out?
> 
> Glenn Marcy
> Technical Consultant
> XML Technology Group, IBM
Received on Monday, 27 March 2000 01:12:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:05:53 GMT