<?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>7864</bug_id>
          
          <creation_ts>2009-10-09 21:31:51 +0000</creation_ts>
          <short_desc>[XQuery 1.1] Unclear whether both user-defined and external functions can be both public and private</short_desc>
          <delta_ts>2009-11-05 18:45:04 +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>Working drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</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="Jim Melton">jim.melton</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>john.snelson</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>28182</commentid>
    <comment_count>0</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2009-10-09 21:31:51 +0000</bug_when>
    <thetext>In the WD of XQuery 1.1 currently being prepared for internal WG review, the 5th paragraph of Section 4.17, Function Declaration, says:

A function declaration may specify that a function is private or public (which is the default). [Definition: A private function is hidden from module import, which can not import it into the function signatures of another module. ] [Definition: A public function is accessible to module import, which can import it into the function signatures of another module. ]

EBNF production [31] allows, and the quoted paragraph suggests, that both user-defined functions and external functions are allowed to be either private functions or public functions.  However, an admittedly brief scan of the minutes recording the acceptance of private functions did not reveal whether the WG intended for this to be the case, or if only declarations of user-defined functions were to have the option specified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28278</commentid>
    <comment_count>1</comment_count>
    <who name="John Snelson">john.snelson</who>
    <bug_when>2009-10-12 20:17:50 +0000</bug_when>
    <thetext>I don&apos;t think the WG discussed that. My opinion is that there&apos;s no reason not to allow private external functions - for instance some internal parts of a module that interfaces with the hardware may be written as external functions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29351</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2009-11-05 18:45:04 +0000</bug_when>
    <thetext>The Working Group decided to allow external functions to be private, on the theory that a module need not share how it implements functionality.

This requires no changes to the document.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>