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,1cf653444208df72 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-05 00:50:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!ailinel.cbb-automation.DE!not-for-mail From: dmitry@elros.cbb-automation.de (Dmitry Kazakov) Newsgroups: comp.lang.ada Subject: Re: ada vs. cpp Date: Fri, 05 Oct 2001 07:50:09 GMT Message-ID: <3bbd6287.346843109@news.cis.dfn.de> References: <9pgr68$7pu1@news.cis.okstate.edu> NNTP-Posting-Host: ailinel.cbb-automation.de (212.79.194.99) X-Trace: fu-berlin.de 1002268210 19793068 212.79.194.99 (16 [77047]) X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:13767 Date: 2001-10-05T07:50:09+00:00 List-Id: On 4 Oct 2001 05:13:44 GMT, David Starner wrote: >On Thu, 4 Oct 2001 01:08:42 -0400, Pi wrote: >> Remember that Ada is at his very best if you give him few >> input, billions of calculations on numbers and than few output. > >"her" very best. I guess it's very debatable, though . . . > >> You say that it's text-based. >> Do you have to parse the text-input? >> In this case I would consider using Perl[1] for the parsing >> and than the actual treatement in Ada. >> (Strings aren't Ada's strength) > >Strings aren't Ada's strength, but Ada isn't terribly weak in strings. I >don't see any problem in parsing the input using Ada. Sorry, but Ada is one of rare languages which are able to manipulate strings allocated on the stack. IMO strings are indeed one of Ada strengths, especially if you need an efficient parsing code. [Usually parsing does not require strings allocated on the heap. But I you want, well, Ada has them too.] In any case, as many have pointed, it is a bit ridiculous to compare Ada's strings with C++ having no strings at all. Regards, Dmitry Kazakov