W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2008

[Bug 5690] CVS: Static Typing: FunctX tests needs adjustment

From: <bugzilla@farnsworth.w3.org>
Date: Fri, 16 May 2008 16:33:38 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1Jx2sE-0004GN-AA@farnsworth.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5690





------- Comment #4 from nick@cbcl.co.uk  2008-05-16 16:33 -------
Similarly for functx-functx-max-line-length-* the function:

declare function functx:max-line-length
  ( $arg as xs:string? )  as xs:integer {

   max(
     for $line in functx:lines($arg)
     return string-length($line))
 } ;

May return at empty-sequence if $arg is an empty sequence, so I think should
have return type xs:integer? in the normal version rather than a static-typing
specific version.
Received on Friday, 16 May 2008 16:34:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 16 May 2008 16:34:42 GMT