Re: variadic function support

Andrew Dunstan <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.patches
Message-ID <[email protected]>

Pavel Stehule wrote:
> I afraid so Java syntax isn't good  inspiration
> http://www.java-tips.org/java-se-tips/java.lang/using-the-varargs-language-feature.html
> http://www.clanproductions.com/java5.html
>
> they use symbol ... like specific synonym to [].
> public Method getMethod(String name, Class... parameterTypes)
>
>   
>

Well, ... is really more the equivalent of your "variadic" keyword, I think.


	public Method getMethod(String name, Class[] ... parameterTypes)


would mean each variadic argument would be an array of Class.

cheers

andrew








-- 
Sent via pgsql-patches mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.