Skip site navigation (1) Skip section navigation (2)

Re: variadic function support

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: variadic function support
Date: 2008-06-25 14:09:28
Message-ID: 48625198.5040200@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-patches

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








In response to

pgsql-patches by date

Next:From: Pavel StehuleDate: 2008-06-25 16:11:12
Subject: Re: variadic function support
Previous:From: Pavel StehuleDate: 2008-06-25 10:02:22
Subject: Re: variadic function support

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group