Pete a �crit dans le message : qzB_4.10571$kf5.79533@typhoon.nyroc.rr.com... > > > 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] = Here you are assigning an element, not the array. I was talking about assigning the whole array; but of course, there is no such thing as value assignment in Java... > you could also resize the array, without any looping statements > (System.arrayCopy) In ada, System.arrayCopy is called ":=". Talking about conciseness... > 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. String is not a variable string. If you want to have variable, unlimited strings with hidden memory allocation and automatic recollection, use Unbounded_String! As far as freeing (or collecting) memory is concerned, I hope you know that NO Java compilers does that. Garbage collection is a property of the JVM, and will apply equally to all languages running on the JVM (Java, Ada, or any other) -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://pro.wanadoo.fr/adalog