Lee, David wrote:

> declare function local:mydbs() as xs:unsignedLong
> {
>    xdmp:forest-databases( $my_forest )
> }

> Changing the signature of forest-databases to return
> xs:unsignedLong+ will result in a static compilation error.

  Of course, and that's a good thing.  If your code explicitly says it requires 
exactly one item, then it will fail.  But some places will handle the case 
"naturally", and those one will continue to work.  But indeed, a change in an 
API may require adaptations from the clients, even if it has been thought to 
minimize those changes.

  Regards,

-- 
Florent Georges
http://fgeorges.org/



      

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to