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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8f802583e5c84fa X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!feeder2.ecngs.de!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: String filtering Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1j92wa9843ylq.16j89wuqatbaj$.dlg@40tude.net> <1b54lwg8s1gk8.1t3jp1cmc2x32$.dlg@40tude.net> Date: Wed, 28 Sep 2005 14:02:53 +0200 Message-ID: <1akx2zpggbdsp$.1071g8ujkivhi$.dlg@40tude.net> NNTP-Posting-Date: 28 Sep 2005 14:02:53 MEST NNTP-Posting-Host: ea5e64f4.newsread2.arcor-online.net X-Trace: DXC=CAM24Oe6?CDl=9hLK`A7fMQ5U85hF6f;DjW\KbG]kaMHGSi?jHD8GO@^Vkc?\74MAF[6LHn;2LCVN7enW;^6ZC`D<=9bOTW=MNN X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:5236 Date: 2005-09-28T14:02:53+02:00 List-Id: On Wed, 28 Sep 2005 10:51:35 +1000, David Trudgett wrote: > "Dmitry A. Kazakov" writes: > >> It is a different story. Unbounded_String is a nasty kludge. But >> that does not mean that if they were designed properly, they would >> be more needed! (:-)) > > I'm almost afraid to ask... :-) What is it about Unbounded_String that > makes it a kludge, in your opinion? Is there something unecessarily > inefficient (space/time) about the way they are specified in the Ada95 > standard? Or is it that existing implementations of it are a kludge? It is much simpler, they are *not* strings: ARM 95 3.6.3 (1): "A one-dimensional array type whose component type is a character type is called a string type." Unbounded_String design was a compromise, to make them right would have required too many changes in the language. And there already were many. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de