From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Blady Newsgroups: comp.lang.ada Subject: Re: String_Access in unbounded string handling? Date: Wed, 17 Jan 2024 10:54:24 +0100 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 17 Jan 2024 09:54:24 -0000 (UTC) Injection-Info: dont-email.me; posting-host="bc1174016ac0056bd2ce15ce8f2a7536"; logging-data="2054159"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Ckjcv/6innj5/L/GruR/5" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:DBA9Yf3s/H4CH4F27MKgfiVgmEU= Content-Language: fr, en-US In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:65999 List-Id: Le 17/01/2024 à 02:24, Randy Brukardt a écrit : > "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. Thanks for all your answers, This is probably a very minor subject, however I submitted it: https://github.com/Ada-Rapporteur-Group/User-Community-Input/issues/79 Pascal.