[Bug 8873] [XQuery 1.1] Scope of static context components is inconsistently defined

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





--- Comment #5 from Jonathan Robie <jonathan.robie@redhat.com>  2010-03-25 14:03:43 ---
(In reply to comment #4)
> The concept of "global" scope seems a bit unnecessary: the only component
> defined with global scope is XPath 1.0 compatibility mode, which has a fixed
> value of "false", and it could therefore have that fixed value at module scope
> without any detrimental effects. In fact, we really don't want anything in the
> static context to have global scope, since it will invariably get in the way of
> separate compilation of modules. So I would recommend getting rid of it.


Lexical scope and dynamic scope actually have the same scope, in each case the
scope is determined by the expression that defines it.  

The difference is whether the value can be changed at run-time - but that's not
really a scope question, is it?

We might be able to cut the number of scopes down to 2, rather than 4.


-- 
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, 25 March 2010 14:03:48 UTC