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: C vs. Ada - strings Date: 2000/06/03 Message-ID: #1/1 X-Deja-AN: 630599932 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> 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 960043814 24.164.184.63 (Sat, 03 Jun 2000 10:50:14 EDT) Organization: Time Warner Road Runner - Syracuse NY X-MSMail-Priority: Normal NNTP-Posting-Date: Sat, 03 Jun 2000 10:50:14 EDT Newsgroups: comp.lang.ada Date: 2000-06-03T00:00:00+00:00 List-Id: I see your point. But suppose in Java, I have Srting ar[] = new String[] { "have", "a", "good", "day" }; // assume some processing. ar[2] = "junk"; I think the Ada way to do this would be much more complicated. I may be wrong, can this be done so simply in Ada *without having to create new types, or making function calls*? If so, I am interested in seeing how to do this. - pete "Geoff Bull" wrote in message news:3924B730.AFB52C1C@acenet.com.au... > Pete wrote: > > java strings are much better. > Only some aspects are better, many are much worse! > E.g., they're horribly slow, especially if you need to change them - > since they're immutable you have to create a new one. > (Being immutable allows getting substrings to be fast, among other > things). > A StringBuffer only partially solves this problem.