<?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>29058</bug_id>
          
          <creation_ts>2015-08-17 05:14:34 +0000</creation_ts>
          <short_desc>[FO31] determinism of function calls with arrays and maps</short_desc>
          <delta_ts>2016-12-16 19:55:17 +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>Functions and Operators 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>andrew_coleman</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>122627</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-08-17 05:14:34 +0000</bug_when>
    <thetext>During the XSLWG we discussed the determinism of function calls under https://www.w3.org/XML/Group/qtspecs/specifications/xpath-functions-31/html/Overview.html#dt-deterministic as it was implemented internally (we shared screen with Michael Kay, I don&apos;t see the same text in the internal draft yet).

The list of items that determine whether two calls can return the same (cached) result omits array and map arguments (function items are mentioned, but don&apos;t special-case arrays or maps, for which identity exists).

Also: under fn:collection, the link to &quot;deterministic&quot; does not lead to the term deterministic. Other links seem to work, but I didn&apos;t check all of them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122781</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-08-26 20:18:14 +0000</bug_when>
    <thetext>The link in comment#0 should be: https://www.w3.org/XML/Group/qtspecs/specifications/xpath-functions-31/html/Overview.html#dt-identical, under section 1.7.4. Properties of functions, notably the numbered list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123047</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-09-02 17:05:27 +0000</bug_when>
    <thetext>I was actioned to produce a proposal. I propose to add to the list of conditions in 1.7.4 (Two values are defined to be *identical* if any of the following....)


3. Both items are maps, both maps have the same number of entries, and for every entry E1 in the first map there is an entry E2 in the second map such that the keys of E1 and E2 are *the same key*, and the corresponding values V1 and V2 are *identical*.

4. Both items are arrays, both arrays have the same number of members, and the members are pairwise *identical*

5 (was 3). Both items are function items, &lt;add&gt;neither is a map or an array&lt;/add&gt;, and...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123048</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-09-02 17:10:29 +0000</bug_when>
    <thetext>Although not yet approved by the WG, the proposed wording has been added to the specification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123133</commentid>
    <comment_count>4</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2015-09-08 16:29:43 +0000</bug_when>
    <thetext>The WG accepted the proposal and wording</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>