From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: String_Access in unbounded string handling? Date: Tue, 16 Jan 2024 19:24:40 -0600 Organization: A noiseless patient Spider Message-ID: References: Injection-Date: Wed, 17 Jan 2024 01:23:50 -0000 (UTC) Injection-Info: dont-email.me; posting-host="2f2fa9ab8f9bc51ab54574350b636c29"; logging-data="1782092"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/q9/dCxR0t6c8gGr8RQx9Bfm/Okwl+UKc=" Cancel-Lock: sha1:azyyoWFTGMP0S7dtMETfjEttpL0= X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 X-Priority: 3 X-MSMail-Priority: Normal Xref: news.eternal-september.org comp.lang.ada:65997 List-Id: "Jeffrey R.Carter" wrote in message news:uo0fs5$dja6$1@dont-email.me... > On 2024-01-14 12:05, Blady wrote: >> >> String_Access is defined in A.4.5 Unbounded-Length String Handling: >> 7 type String_Access is access all String; >> >> and note: >> 75 The type String_Access provides a (nonprivate) access type for >> explicit processing of unbounded-length strings. >> >> I wonder what String_Access is for and what could be "explicit >> processing"? > > String_Access is a mistake that should not exist. I agree with Jeffrey. Whatever reason it was initially put into the package has long since ceased to be relevant. And, as Dmitry notes, when you want such a type, it's usually because you didn't want to use Ada.Strings.Unbounded (or Bounded). So the placement is odd at best. Randy.