[Bug 10876] [XQuery11] Is it valid to have conflicting private functions in two different modules?

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10876

--- Comment #2 from Jonathan Robie <jonathan.robie@redhat.com> 2010-12-11 21:54:20 UTC ---
The original text has disappeared due to the resolution of other bugs. The fix
is now implemented in the following text:

The function signatures include the signatures of functions from a variety of
sources, including built-in functions described in [XQuery and XPath Functions
and Operators 3.0], functions declared in the current module (see 4.18 Function
Declaration), module imports (see 4.12 Module Import), constructor functions
(see 3.15.5 Constructor Functions), and functions provided by an implementation
or via an implementation-defined API (see C.1 Static Context Components). It is
a static error [err:XQST0034] if two such functions have the same expanded
QName and the same arity (even if the signatures are consistent).

Note that module import does not import private functions:

[Definition: A module import imports the variable declarations and public
function declarations from one or more library modules into the function
signatures and in-scope variables of the importing module.]

I believe that solves the problem.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 11 December 2010 21:54:22 UTC