W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2010

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

From: <bugzilla@wiggum.w3.org>
Date: Thu, 25 Mar 2010 14:03:44 +0000
To: public-qt-comments@w3.org
Message-Id: <E1Nuney-0000sU-Ir@wiggum.w3.org>

--- 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

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