Varargs, was: Re: Closures
Werner Randelshofer <[email protected]>
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <BCB0A984.9BF7%[email protected]> |
I think JSR 65 has been withdrawn because of the new varargs syntax of JDK
1.5.
An ellipse is used to define a parameter which takes an arbitrary number of
arguments.
Here's a method definition taken from class PrintStream of JDK 1.5:
public PrintStream format(String format,
Object... args)
Pat wrote:
> This might make a lot of interesting applications possible. One question I
> have though is what ever happened to the Java compact array declaration syntax
> that was supposed to be coming... I haven't seen evidence of it in 1.5.
> Wasn't that going to use the { } syntax for array decs?
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297