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 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2008-06-25 16:11:12 | Re: variadic function support |
Previous Message | Pavel Stehule | 2008-06-25 10:02:22 | Re: variadic function support |