logo       

Re: Function signature: msg#00205

text.xml.exist

Subject: Re: Function signature

Hi

I believe getArgumentCount() is just talking about the number of
declared arguments in the function, not about their cardinalities.

On Thursday 23 September 2004 07:13, finder@xxxxxxxxxxxxxxxxxxxxx
wrote:
> which will correctly assess the number of required arguments in:
>
> fn:blah($a as xs:string, $b as xs:string*)
>
> (there is ONE required argument, not TWO).

Objection: This does require two arguments, one of type string and one
sequence of strings (the sequence may be empty, but there certainly
has to be a sequence).

fn:blah("123", ()) is a valid invokation
fn:blah("123") is not!

Sebastian

--
Sebastian Bossung
Software Systems (STS), Ab 4-02
Technische Universität Hamburg-Harburg
Harburger Schlossstraße 20, 21071 Hamburg, Germany
http://www.sts.tu-harburg.de


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise