[Bug 21963] Implicit iteration on dynamic function calls

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21963

--- Comment #3 from Jonathan Robie <jonathan.robie@gmail.com> ---
I like this.  It's a little tricky to fit into the current structure of the
spec, and I'd like to avoid restructuring this part. My first thought is to do
something along these lines:


3.1.5.1 Evaluating Static and Dynamic Function Calls

2.b. 

<old>
If FC is a dynamic function call: FC's base expression is evaluated with
respect to SC and DC. If this yields a sequence consisting of a single function
with the same arity as the arity of the ArgumentList, let F denote that
function. Otherwise, a type error is raised [err:XPTY0004].
</old>

<new>
If FC is a dynamic function call: FC's base expression is evaluated with
respect to SC and DC. If this yields a sequence consisting of a single function
with the same arity as the arity of the ArgumentList, let F denote that
function. <add>If it yields a sequence of functions with the same arity as the
arity of the ArgumentList, let F denote each of these functions in turn, in the
order of the sequence. Otherwise, a type error is raised [err:XPTY0004].
</new>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 13 May 2014 14:59:43 UTC