<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>21221</bug_id>
          
          <creation_ts>2013-03-08 10:51:07 +0000</creation_ts>
          <short_desc>[XQ30] Try/catch and inline functions</short_desc>
          <delta_ts>2013-06-19 10:09:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3.0</component>
          <version>Member-only Editors Drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>18877</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>18877</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>tim</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84117</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-03-08 10:51:07 +0000</bug_when>
    <thetext>We say that try/catch catches errors

&quot;during dynamic evaluation for expressions that are lexically contained within the try clause&quot;

Consider

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

I don&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84519</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-03-17 08:49:48 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 18877 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>