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,640b65cbfbab7216 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.germany.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada.Strings.Bounded Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.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: <47F26C46.3010607@obry.net> <44d88b93-6a90-4c18-8785-2164934ba700@a9g2000prl.googlegroups.com> <47F652F7.9050502@obry.net> <47f7028d$1_6@news.bluewin.ch> <47F749CB.30806@obry.net> Date: Sat, 12 Apr 2008 23:09:12 +0200 Message-ID: <96x8my4o4m7e.fskzcb6i31ty$.dlg@40tude.net> NNTP-Posting-Date: 12 Apr 2008 23:09:14 CEST NNTP-Posting-Host: 22c1cbca.newsspool4.arcor-online.net X-Trace: DXC=n4V99JkK2QYcHPTNZh_e7Q4IUKRd2J2TBBSN>^[6LHn;2LCV^[ On Sat, 12 Apr 2008 11:50:56 -0700 (PDT), Eric Hughes wrote: > I believe many of the issues involving strings could be addressed by > introducing a predefined type universal_string. I don't see it this way. You have mentioned universal_integer, which is already here. So a comparable case would be Integer vs. BigNum. The latter (arbitrary-precision arithmetic) plays same role for integers as Unbounded_String does for strings. Now, if ARM had BigNum defined, we would experience exactly same problems with both, as we have with Strings and Unbounded_String. > Now, my real hope is that universal_string wouldn't need to be > predefined at all, but specified algebraically or logically within a > future version of Ada. I can only agree with that. But note, that in order to do so, you will need slices, indices and sets of indices (ranges is an example of) defined algebraically as well. Presently Ada lacks them. The bottom line, instead of patching it here and there, the language type system should be redesigned. Hacks need to be replaced by sound concepts.[*] Unfortunately Ada community has little interest in that. ---------- * By this I don't mean backward incompatibility. Actually it is the hacks, which are responsible for most of incompatibilities, as they tend to introduce strange syntax, new reserved words and confusing semantics. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de