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!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: ADA.STRINGS.INDEX_ERROR : a-strunb.adb:782 Date: Thu, 18 Jan 2018 19:10:42 -0600 Organization: JSA Research & Innovation Message-ID: References: <7e895632-e0f9-4035-a0a3-1a31a262c8b3@googlegroups.com> <6e4679ff-6058-40ec-821a-791507313906@googlegroups.com> Injection-Date: Fri, 19 Jan 2018 01:10:43 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="9762"; 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; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:49989 Date: 2018-01-18T19:10:42-06:00 List-Id: "Dmitry A. Kazakov" wrote in message news:p3qe4m$t5n$1@gioia.aioe.org... > On 18/01/2018 14:08, J-P. Rosen wrote: > >> If the user were allowed to define identifiers with a quote, these would >> not be true any more, and there would be no benefit in using a >> distinctive syntax. > > As if there were any benefit of. The benefit is that these things can express ideas that aren't possible for ordinary subprogram calls. To express Subtype'First as a function, one would have to have some sort of meta-type (a subtype parameter). You'd also have to allow "univeral_integer" and the like as expressible data types (meaning that you'd have to decide what they mean at runtime). All things that could be done -- in a new language -- but it would be extremely difficult to define such things and keep compatibility with existing Ada. Randy.