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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Musing on defining attributes and the ability to define an "abstract type X"-interface. Date: Fri, 4 Aug 2017 19:17:56 -0500 Organization: JSA Research & Innovation Message-ID: References: <9617c73b-e23e-405b-8544-4d17e7e3ad61@googlegroups.com> <28512bf1-0c2c-400f-a24f-cc7e0eb8a02d@googlegroups.com> <87h8y67trd.fsf@jacob-sparre.dk> Injection-Date: Sat, 5 Aug 2017 00:17:57 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="15260"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: news.eternal-september.org comp.lang.ada:47597 Date: 2017-08-04T19:17:56-05:00 List-Id: "Shark8" wrote in message news:ae46a44e-ee1e-42f6-ae8d-a02ae012e31d@googlegroups.com... ... >IOW, what I want to do is leverage the language's underlying concepts, >making >them explicit, and using *THAT* to unify/define what is already (in some >sense) >required... like how universal_integer attributes require a bignum package, >but >the language doesn't require its exposure. I made a stab at this some years ago (see the discussion of AI12-0021-1); the idea was to define a Root_String_Type that all of the others are derived from. Some messing around is needed to get literals and conversions. Idea being that a routine taking a Root_String_Type'Class parameter could handle any text string, with any representation or storage management (i.e. unbounded or fixed), without any explicit code. I have no idea if there is any interest in pursuing this approach, or some similar approach; I don't think we ever discussed it in a meeting. Internationalization is supposed to be further addressed in Ada 2020, so I would hope that we'd discuss it someday soon. Randy.