comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: String_Access in unbounded string handling?
Date: Tue, 16 Jan 2024 19:24:40 -0600	[thread overview]
Message-ID: <uo7a76$1mcac$1@dont-email.me> (raw)
In-Reply-To: uo0fs5$dja6$1@dont-email.me

"Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not> 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.


  parent reply	other threads:[~2024-01-17  1:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-14 11:05 String_Access in unbounded string handling? Blady
2024-01-14 11:17 ` Jeffrey R.Carter
2024-01-14 15:12   ` Dmitry A. Kazakov
2024-01-17  1:30     ` Randy Brukardt
2024-01-17  1:24   ` Randy Brukardt [this message]
2024-01-17  9:54     ` Blady
2024-01-17 13:34 ` Tucker Taft
2024-01-19  1:36   ` Randy Brukardt
2024-01-30 15:53     ` Blady
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox