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

[Bug 9787] Improving function overloading in XQuery

From: <bugzilla@jessica.w3.org>
Date: Fri, 21 May 2010 13:17:22 +0000
To: public-qt-comments@w3.org
Message-Id: <E1OFS6M-0007sO-6H@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9787





--- Comment #1 from John Snelson <john.snelson@oracle.com>  2010-05-21 13:17:21 ---
I think this is an interesting future direction, since it will also allow users
to safely define functions that take the context item as an implicit argument:

define function local:findIDs($node as node() := .)
{
  $node//@id
};

This kind of default argument is evaluated in the calling context, rather than
the function's context.

That said, this is almost certainly a feature that should be considered for
XQuery 1.2 rather than XQuery 1.1.

-- 
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 Friday, 21 May 2010 13:17:24 UTC

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