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: 630932721 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> 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 960133867 24.164.184.63 (Sun, 04 Jun 2000 11:51:07 EDT) Organization: Time Warner Road Runner - Syracuse NY X-MSMail-Priority: Normal NNTP-Posting-Date: Sun, 04 Jun 2000 11:51:07 EDT Newsgroups: comp.lang.ada Date: 2000-06-04T00:00:00+00:00 List-Id: > type String_Ptr is access String; > type String_List is array (Natural range <>) of String_Ptr; > AR : constant String_List := (new String'("have"), new String'("a"), new > String'("good"), new String'("day")); my whole point is the complexity of the syntax. compare the above to String st[] = new String[] { "have", "a", "good", "day"}; The ada code above has two new types in order to process an array of *primitive* types. > > I've never done this myself because in 11 years of Ada work I've never had a > much need for ragged string arrays. That's probably why Ada doesn't come with a > type for them. :-) i've already had a use for them in the 6 months that i started this new ada project. > T.E.D. > > Home - mailto:dennison@telepath.com Work - mailto:dennison@ssd.fsi.com > WWW - http://www.telepath.com/dennison/Ted/TED.html ICQ - 10545591 > >