<?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>1690</bug_id>
          
          <creation_ts>2005-07-17 21:44:22 +0000</creation_ts>
          <short_desc>[FS] need to know what function is invoked before looking for special rules</short_desc>
          <delta_ts>2007-01-16 17:34:13 +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>Formal Semantics 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 2000</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fred Zemke">fred.zemke</reporter>
          <assigned_to name="Jerome Simeon">simeon</assigned_to>
          
          
          <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>4776</commentid>
    <comment_count>0</comment_count>
    <who name="Fred Zemke">fred.zemke</who>
    <bug_when>2005-07-17 21:44:22 +0000</bug_when>
    <thetext>4.1.5 Function calls
Under &quot;Static type analysis&quot;, the first sentence says &quot;to typecheck 
a Core function call we first check in Section [7 Additional
semantics of functions] if there is a
specialized typing rule for the function.&quot;  Then the second 
sentence says &quot;Otherwise, the function signatures matching the 
function name and arity are retrieved...&quot;.

This seems to be logically inverted.  The first sentence assumes
that you know whether a function call matches something in 
section 7, yet you have not even decided what function is being
invoked, which comes in the second sentence.  

This can be fixed by clarifying that the check of Section 7
is done purely on the basis of the function&apos;s namespace and 
name, without needing to consult its signature.  Thus the 
first sentence would be &quot;If the namespace of the function is
either fs or fn, and if the name matches one of the functions
named in Section 7, then we use the rules in the subsection
of Section 7 for the function on the basis of its namespace 
and name.&quot;  That&apos;s probably what you meant; I think this just
expresses it more precisely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4910</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-19 17:56:57 +0000</bug_when>
    <thetext>I believe this is editorial.
- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9169</commentid>
    <comment_count>2</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-04-11 22:47:24 +0000</bug_when>
    <thetext>This bug has been taken over by events. The static typing rules for
function calls have been refactorized. Their is now a rule which
applies to all cases which deals with the ordering and namespace
problem mentioned here.
- Jerome</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>