Re: variadic function support - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: variadic function support
Date
Msg-id 48625198.5040200@dunslane.net
Whole thread Raw
In response to Re: variadic function support  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List 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








pgsql-patches by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: variadic function support
Next
From: "Pavel Stehule"
Date:
Subject: Re: variadic function support