[xquery-talk] polymorphism in xquery

Michael Kay mhk at mhk.me.uk
Tue Oct 28 00:10:29 PST 2003


You can write a single function that accepts a very generic type such as
item(), and do a typeswitch based on the argument supplied, but there is
no dynamic (or static) despatch mechanism that chooses from several
functions based on the actual argument supplied.
 
(And of course, there's no equivalent of XSLT's match templates).
 
Michael Kay

-----Original Message-----
From: talk-bounces at xquery.com [mailto:talk-bounces at xquery.com] On Behalf
Of Uday Subbarayan
Sent: 27 October 2003 17:59
To: talk at xquery.com
Subject: [xquery-talk] polymorphism in xquery


Experts,
        I am curious to know how polymorphism is currently achieved in
XQuery?

The Funcions spec says,
<In general, the specifications named above do not support function
overloading. Consequently, there are no overloaded functions in this
document except for legacy [XPath 1.0] functions such as string(),.....
/>

Thanks,
-Uday. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xquery.com/pipermail/talk/attachments/20031028/9e05d9db/attachment.htm


More information about the talk mailing list