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-Thread: 103376,640b65cbfbab7216 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada.Bounded_Strings Date: Sat, 5 Apr 2008 19:44:26 -0500 Organization: Jacob's private Usenet server Message-ID: References: <47F26C46.3010607@obry.net> <44d88b93-6a90-4c18-8785-2164934ba700@a9g2000prl.googlegroups.com> <47F652F7.9050502@obry.net> <444c0bf9-a2ad-4280-8d69-58d59938f69e@d2g2000pra.googlegroups.com> <1tgn4av0s35bj.1xdkgm7hg8psa.dlg@40tude.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1207442683 21419 69.95.181.76 (6 Apr 2008 00:44:43 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sun, 6 Apr 2008 00:44:43 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1914 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 Xref: g2news1.google.com comp.lang.ada:20846 Date: 2008-04-05T19:44:26-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:1tgn4av0s35bj.1xdkgm7hg8psa.dlg@40tude.net... ... > > (Worse, the current string packages cannot be retrofitted to > > use such a capability even if it was added to Ada, lessening the possibility > > of doing that.) > > Why is this a problem? Old packages could be re-implemented using new > features with the specifications left as-is for backward compatibility. Because there are plenty of people who will oppose adding better predefined packages to the language, because the current ones are "good enough" and more packages means more clutter and confusion for new Ada users. I already ran into this once when we were discussing how to fix the problems of the Unbounded_Strings package (it's not possible to do all operations using only values of Unbounded_Strings - patterns, for instance have to be regular strings. That means they have to be converted from Unbounded_String to String in order to use them to search in an Unbounded_String -- that's very ugly.) We only were able to make minor incremental changes, and there was opposition to even those changes. And there was no support whatsoever for a an improved version. I'd expect the situation to change somewhat if we have lots of new features to integrate, but we have a classic chicken-and-egg problem here: we're probably not going to get those new features unless they can be used with the string packages, but the string packages can't use those new features, and there isn't interest in changing the packages in the absence of significant new functionality. Randy.