W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2013

[Bug 20631] [F+O 3.0] The "numeric" pseudo-type

From: <bugzilla@jessica.w3.org>
Date: Mon, 14 Jan 2013 15:19:06 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-20631-523-3j4yViT7AZ@http.www.w3.org/Bugs/Public/>

Andrew Eisenberg <andrew.eisenberg@us.ibm.com> changed:

           What    |Removed                     |Added
                 CC|                            |andrew.eisenberg@us.ibm.com

--- Comment #2 from Andrew Eisenberg <andrew.eisenberg@us.ibm.com> ---
This issue is addressed in 3.1.6 Named Function References:

Certain functions in the [XQuery and XPath Functions and Operators 3.0]
specification are defined to be polymorphic. These are denoted as accepting
parameters of "numeric" type, or returning "numeric" type. Here "numeric" is a
pseudonym for the four primitive numeric types xs:decimal, xs:integer,
xs:float, and xs:double. For the purposes of named function references, these
functions are regarded as taking arguments and producing results of type
xs:anyAtomicType, with a type error raised at runtime if the argument value
provided is not of the correct numeric type.


The above way of modeling polymorphic functions is semantically backwards
compatible with XQuery 1.0. An implementation that supports static typing can
choose to model the types of these functions more accurately if desired.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 14 January 2013 15:19:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:41 UTC