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: (view raw or whole thread)
Lists: pgsql-patches

Pavel Stehule wrote:
> I afraid so Java syntax isn't good  inspiration
> 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.



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-2015 The PostgreSQL Global Development Group