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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4f316de357ae35e9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-02 19:32:41 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!ihug.co.nz!west.cox.net!cox.net!p01!news2.central.cox.net.POSTED!53ab2750!not-for-mail Message-ID: <3D4B401E.3060802@telepath.com> From: Ted Dennison User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: FAQ and string functions References: <20020730093206.A8550@videoproject.kiev.ua> <4519e058.0207300548.15eeb65c@posting.google.com> <20020731104643.C1083@videoproject.kiev.ua> <4519e058.0208010629.5e6182ca@posting.google.com> <20020801194720.Q1080@videoproject.kiev.ua> <4519e058.0208020605.5ab7e092@posting.google.com> <3D4AAF63.72782659@san.rr.com> <3D4B2382.7030209@telepath.com> <3D4B2ACD.FDA29B9A@san.rr.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 03 Aug 2002 02:32:40 GMT NNTP-Posting-Host: 68.12.51.201 X-Complaints-To: abuse@cox.net X-Trace: news2.central.cox.net 1028341960 68.12.51.201 (Fri, 02 Aug 2002 22:32:40 EDT) NNTP-Posting-Date: Fri, 02 Aug 2002 22:32:40 EDT Organization: Cox Communications Xref: archiver1.google.com comp.lang.ada:27638 Date: 2002-08-03T02:32:40+00:00 List-Id: Darren New wrote: > Yes. But when you chop up a string, what do you do with the result? You > can't just declare an array in Ada and say "I'm not sure how much this will > hold" or "add one more element to the end of this array" like you can with > Ada.Strings.Unbounded. Yes you can. You just can't assign a new value into the array that is a different size than the old value. That's no huge hardship with declare blocks, and no problem at all if you program everthing functionally. My problem with a lot of this discussion is that it seems to be "Ada doesn't support X idiom that Y programmers like to use", rather than "Ada can't perform X task nearly as easily as language Y can." There are probably examples of the latter that need to be addressed, so this discussion is important. But the former is just someone's ignorance of the language. > I've been working in scripting languages for the last few years, and I see a > lack in Ada of basic simple data structures, like variable sized arrays, > content-addressable arrays, and a few other things like that. I can see how > someone coming from Perl could miss all that. Once you've written programs You are quite correct there. All that stuff is basicly equivalent to Unbounded Lists and Maps, which is a known deficiency that will (hopefully) be addressed in the next version of the language.