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

[Bug 21221] New: [XQ30] Try/catch and inline functions

From: <bugzilla@jessica.w3.org>
Date: Fri, 08 Mar 2013 10:51:07 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-21221-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21221

            Bug ID: 21221
           Summary: [XQ30] Try/catch and inline functions
    Classification: Unclassified
           Product: XPath / XQuery / XSLT
           Version: Member-only Editors Drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3.0
          Assignee: jonathan.robie@gmail.com
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org

We say that try/catch catches errors

"during dynamic evaluation for expressions that are lexically contained within
the try clause"

Consider

let $f := try { function($x){3 div $x} } catch {round#1}
return $f(0)

I don't think the try/catch is intended to catch the divide-by-zero error,
because evaluation of the function body is not caused by the evaluation of the
try expression. But the way the rule is phrased in terms of lexical containment
suggests otherwise.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 8 March 2013 10:51:13 UTC

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