From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f868292008c639ce X-Google-Attributes: gid103376,public From: "Pete" Subject: Re: Java vs. Ada - strings (was: C vs. Ada - strings) Date: 2000/06/04 Message-ID: #1/1 X-Deja-AN: 631072250 References: <390F0D93.F835FAD9@ftw.rsc.raytheon.com> <8en5o9$ihe$1@nnrp1.deja.com> <8eonos$e70$1@wanadoo.fr> <1fIU4.4668$Rx3.250161@typhoon.nyroc.rr.com> <3924B730.AFB52C1C@acenet.com.au> <39394E0B.75BD479C@telepath.com> <8hecs2$295$1@wanadoo.fr> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Complaints-To: abuse@twcny.rr.com X-Trace: typhoon.nyroc.rr.com 960161110 24.164.184.63 (Sun, 04 Jun 2000 19:25:10 EDT) Organization: Time Warner Road Runner - Syracuse NY X-MSMail-Priority: Normal NNTP-Posting-Date: Sun, 04 Jun 2000 19:25:10 EDT Newsgroups: comp.lang.ada Date: 2000-06-04T00:00:00+00:00 List-Id: > 2) The Java syntax is nice - only at initialisation time. You have no aggregates in Java, so the corresponding syntax would not be > allowed if you wanted to put other values in the array after initialisation. i'm not sure what you mean...if i wanted to change an element of the string array, i would just assign it via s[i] = you could also resize the array, without any looping statements (System.arrayCopy) > also suppose the ada array (1 based) AR : constant String_List := (new String'("have"), new String'("a"), new String'("good"), new String'("day")); i hope that i can say ar(2) := without having to worry about contraint errors, or having to free the old ar(2) first, the compiler should be smart enough to figure it out.