This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21221 - [XQ30] Try/catch and inline functions
Summary: [XQ30] Try/catch and inline functions
Status: CLOSED DUPLICATE of bug 18877
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.0 (show other bugs)
Version: Member-only Editors Drafts
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on: 18877
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-08 10:51 UTC by Michael Kay
Modified: 2013-06-19 10:09 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2013-03-08 10:51:07 UTC
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.
Comment 1 Tim Mills 2013-03-17 08:49:48 UTC

*** This bug has been marked as a duplicate of bug 18877 ***