[327] in java-interest
Re: new array declaration syntax in parameter list?
daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Wed Jun 14 22:50:36 1995
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: majordom@java.Eng.Sun.COM (MIURA Masahiro)
Date: Wed, 14 Jun 1995 19:30:20 -0800 (PDT)
Cc: java-interest@java.Eng.Sun.COM
In-Reply-To: <9506150206.AA00993@dubhead.ap.ilab.toshiba.co.jp> from "MIURA Masahiro" at Jun 15, 95 11:06:17 am
Hi Miura,
> I like the new array declaration syntax. Can I use it in method's
> parameter list? That is, instead of
>
> public static void main (String args[]) { ... }
>
> I want to write
>
> public static void main (String[] args) { ... }
>
> but javac complains "Identifier expected" between String and [].
This is due to an error on my part. When fixing the compiler to allow
the new array syntax I did not change it for method arguments. It will
be fixed in the next release.
Have fun,
Arthur van Hoff (avh@eng.sun.com)
http://java.sun.com/people/avh/
Sun Microsystems Inc, M/S UPAL02-301,
100 Hamilton Avenue, Palo Alto CA 94301, USA
Tel: +1 415 473 7242, Fax: +1 415 473 7104
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com