W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2003

Re: local functions and variables

From: Jonathan Robie <jonathan.robie@datadirect.com>
Date: Tue, 26 Aug 2003 08:54:13 -0400
Message-Id: <6.0.0.14.0.20030826085215.01d3cbf8@ncmail.datadirect.com>
To: Per Bothner <per@bothner.com>, public-qt-comments@w3.org

At 01:02 AM 8/26/2003, Per Bothner wrote:

>The new 'local' predefined namespace prefix hints at the possibility of 
>module-location definitions, but isn't quite there.  But only a few minor 
>changes would be needed:
>
>To: "The names of all variables and functions declared in a library module 
>must be explicitly qualified by the target namespace prefix"
>(in 4.1) add "or the predefined 'local" namespace prefix."
>
>To section 4.7 Module Import add somewhere somethinga like: "Any variable 
>or functions declarations using the prefix 'local' in the module to be 
>imported are not imported.  Such definitions are only visible within the 
>library module, and never confict with definitions in other modules."

This is an excellent observation - I like this idea, and I will raise it in 
the Working Group.

One word of warning: there's a pretty strong feeling that we want to be 
done with XQuery as soon as we can, and there's some resistance to adding 
anything not essential at this point. But if we wanted to go this route, we 
would need to do it in XQuery 1.0.

Jonathan 
Received on Tuesday, 26 August 2003 08:54:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:13 UTC