[Bug 14439] [XQuery 3.0] technical: is this a name clash?

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

--- Comment #8 from Michael Dyck <jmdyck@ibiblio.org> 2011-10-13 17:52:51 UTC ---
(In reply to comment #6)
> It would greatly complicate an API if it had to cope with
> multiple external variables having the same name.

If an implementation allowed a query to have two (not in contact) modules with
external variable declaration with the same variable name, then I think the
implementation would be permitted to treat them as referring to the same
external entity, and so not complicate the API. ("The means by which typed
values of external variables are provided by the external environment is
implementation-defined", so an implementation can assert that it will provide
the same value to the two variables.)

(If the declarations have conflicting types, I think the implementation would
be allowed to raise a type error, during static analysis or dynamic
evaluation.)

-- 
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 Thursday, 13 October 2011 17:52:54 UTC