Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

I do not find in orthodox Christianity one redeeming feature. -- Thomas Jefferson


devel / comp.lang.ada / Re: String_Access in unbounded string handling?

SubjectAuthor
* String_Access in unbounded string handling?Blady
+* Re: String_Access in unbounded string handling?Jeffrey R.Carter
|+* Re: String_Access in unbounded string handling?Dmitry A. Kazakov
||`- Re: String_Access in unbounded string handling?Randy Brukardt
|`* Re: String_Access in unbounded string handling?Randy Brukardt
| `- Re: String_Access in unbounded string handling?Blady
`* Re: String_Access in unbounded string handling?Tucker Taft
 `* Re: String_Access in unbounded string handling?Randy Brukardt
  `- Re: String_Access in unbounded string handling?Blady

1
String_Access in unbounded string handling?

<uo0f65$dlcm$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10386&group=comp.lang.ada#10386

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: p.p11@orange.fr (Blady)
Newsgroups: comp.lang.ada
Subject: String_Access in unbounded string handling?
Date: Sun, 14 Jan 2024 12:05:40 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <uo0f65$dlcm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 14 Jan 2024 11:05:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="99c7942b6c792e96c0a46a7cc462ce30";
logging-data="447894"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19N5UUlQi01ki8L9Akww+PE"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:dBpQ0FUfJr6+V9QV9RNCA1igbfE=
Content-Language: fr, en-US
 by: Blady - Sun, 14 Jan 2024 11:05 UTC

Hello,

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"?

Thanks, Pascal.

Re: String_Access in unbounded string handling?

<uo0fs5$dja6$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10387&group=comp.lang.ada#10387

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: spam.jrcarter.not@spam.acm.org.not (Jeffrey R.Carter)
Newsgroups: comp.lang.ada
Subject: Re: String_Access in unbounded string handling?
Date: Sun, 14 Jan 2024 12:17:25 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uo0fs5$dja6$1@dont-email.me>
References: <uo0f65$dlcm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 14 Jan 2024 11:17:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bca654a60c3a3ea218855e0323afc36b";
logging-data="445766"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gdR2WcdK8C8FSycc+zMEeVsZ3ly6kRhE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ODcwNncS6pem0jAjZDlQfHrzvM8=
In-Reply-To: <uo0f65$dlcm$1@dont-email.me>
Content-Language: en-US
 by: Jeffrey R.Carter - Sun, 14 Jan 2024 11:17 UTC

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.

--
Jeff Carter
"If you think you got a nasty taunting this time,
you ain't heard nothing yet!"
Monty Python and the Holy Grail
23

Re: String_Access in unbounded string handling?

<uo0tkt$g6av$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10388&group=comp.lang.ada#10388

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.lang.ada
Subject: Re: String_Access in unbounded string handling?
Date: Sun, 14 Jan 2024 16:12:31 +0100
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <uo0tkt$g6av$1@dont-email.me>
References: <uo0f65$dlcm$1@dont-email.me> <uo0fs5$dja6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 14 Jan 2024 15:12:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="57e78df867bb3a999590cf71675f1d14";
logging-data="530783"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19DYzP5IOTXoaD5kfaYxTrATBju5QR35Cc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:87b+1QABYOTvzZw7G9nBiMwOIkQ=
Content-Language: en-US
In-Reply-To: <uo0fs5$dja6$1@dont-email.me>
 by: Dmitry A. Kazakov - Sun, 14 Jan 2024 15:12 UTC

On 2024-01-14 12:17, Jeffrey R.Carter wrote:
> 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.

Well, from one point of view, surely.

However I frequently need such a type because I in general refrain from
using Unbounded_String. Now, would be no problem to declare it as
needed, except for generics! If you have generic packages like:

generic
type Object_Type (<>) is private;
type Object_Access_Type is access all Object_Type;

You want all instances to share the same String_Access. So it is
conflicting. One is true, it has no place there. It should have been the
package Standard or none.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Re: String_Access in unbounded string handling?

<uo7a76$1mcac$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10389&group=comp.lang.ada#10389

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: randy@rrsoftware.com (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
Lines: 24
Message-ID: <uo7a76$1mcac$1@dont-email.me>
References: <uo0f65$dlcm$1@dont-email.me> <uo0fs5$dja6$1@dont-email.me>
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
 by: Randy Brukardt - Wed, 17 Jan 2024 01:24 UTC

"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.

Re: String_Access in unbounded string handling?

<uo7aiu$1me0k$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10390&group=comp.lang.ada#10390

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: randy@rrsoftware.com (Randy Brukardt)
Newsgroups: comp.lang.ada
Subject: Re: String_Access in unbounded string handling?
Date: Tue, 16 Jan 2024 19:30:57 -0600
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uo7aiu$1me0k$1@dont-email.me>
References: <uo0f65$dlcm$1@dont-email.me> <uo0fs5$dja6$1@dont-email.me> <uo0tkt$g6av$1@dont-email.me>
Injection-Date: Wed, 17 Jan 2024 01:30:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2f2fa9ab8f9bc51ab54574350b636c29";
logging-data="1783828"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ATstBs6TcjZKS+SynaOIKj52fHX4vDRk="
Cancel-Lock: sha1:I0N2h+/5BVGl6rxqZjwQV2PNZUU=
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MSMail-Priority: Normal
X-Priority: 3
 by: Randy Brukardt - Wed, 17 Jan 2024 01:30 UTC

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message
news:uo0tkt$g6av$1@dont-email.me...
....

> ... It should have been the package Standard or none.

None for me. ;-)

One really doesn't want to put anything in Standard that isn't widely
needed, as those names become hard to use in other circumstances. In
particular, declarations in Standard hide anything that is use-visible with
the same name, so adding something to Standard can be rather incompatable.

One could mitigate use-visibility problems by allowing more extensive
overloading (for instance, of objects), but that causes rare and subtle
cases where a program could change meaning without any indication. (Where a
different object would be used, for instance.) That makes that too risky a
change for Ada.

Randy.

Re: String_Access in unbounded string handling?

<uo884g$1um0f$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10391&group=comp.lang.ada#10391

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: p.p11@orange.fr (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
Lines: 31
Message-ID: <uo884g$1um0f$1@dont-email.me>
References: <uo0f65$dlcm$1@dont-email.me> <uo0fs5$dja6$1@dont-email.me>
<uo7a76$1mcac$1@dont-email.me>
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: <uo7a76$1mcac$1@dont-email.me>
 by: Blady - Wed, 17 Jan 2024 09:54 UTC

Le 17/01/2024 à 02:24, Randy Brukardt a écrit :
> "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.

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.

Re: String_Access in unbounded string handling?

<afd791fa-853f-48fa-9223-759b12d4ed87n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10392&group=comp.lang.ada#10392

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:6214:2482:b0:681:55b6:1e40 with SMTP id gi2-20020a056214248200b0068155b61e40mr957269qvb.4.1705498453265;
Wed, 17 Jan 2024 05:34:13 -0800 (PST)
X-Received: by 2002:a81:72c1:0:b0:5fb:7b86:db34 with SMTP id
n184-20020a8172c1000000b005fb7b86db34mr4634829ywc.4.1705498452881; Wed, 17
Jan 2024 05:34:12 -0800 (PST)
Path: i2pn2.org!rocksolid2!news.neodome.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Wed, 17 Jan 2024 05:34:12 -0800 (PST)
In-Reply-To: <uo0f65$dlcm$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=74.104.185.8; posting-account=PvmV9AoAAAD6m3XXwubwsbGwa7cDXv1N
NNTP-Posting-Host: 74.104.185.8
References: <uo0f65$dlcm$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <afd791fa-853f-48fa-9223-759b12d4ed87n@googlegroups.com>
Subject: Re: String_Access in unbounded string handling?
From: tucker.taft@gmail.com (Tucker Taft)
Injection-Date: Wed, 17 Jan 2024 13:34:13 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2321
 by: Tucker Taft - Wed, 17 Jan 2024 13:34 UTC

On Sunday, January 14, 2024 at 6:05:45 AM UTC-5, Blady wrote:
> Hello,
>
> 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"?

The idea was to support the explicit use of new String'(...), X.all, and Unchecked_Deallocation rather than the implicit use of the heap inherent in Unbounded strings. It was recognized that you need a single global access type to avoid having to do conversions all over the place. This predated the availability of stand-alone objects of an anonymous access type (aka "SAOOAAATs" ;-), but those are not universally loved either. It certainly cannot be removed now without potentially very painful disruption of existing users. It could be moved to a different package without too much disruption, but I haven't seen any groundswell of interest in doing that either.
>
> Thanks, Pascal.

Take care,
-Tuck

Re: String_Access in unbounded string handling?

<uocjlt$2qt8r$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10407&group=comp.lang.ada#10407

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: randy@rrsoftware.com (Randy Brukardt)
Newsgroups: comp.lang.ada
Subject: Re: String_Access in unbounded string handling?
Date: Thu, 18 Jan 2024 19:36:59 -0600
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <uocjlt$2qt8r$1@dont-email.me>
References: <uo0f65$dlcm$1@dont-email.me> <afd791fa-853f-48fa-9223-759b12d4ed87n@googlegroups.com>
Injection-Date: Fri, 19 Jan 2024 01:35:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1a0b2567d4817eeafba9b9c082c79bc5";
logging-data="2979099"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/jGHALbdvrMq3e5pvh72FwzlrKJaDatf4="
Cancel-Lock: sha1:YR7abmySO+/CEqu63TLXox9Xt/o=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MSMail-Priority: Normal
X-Priority: 3
 by: Randy Brukardt - Fri, 19 Jan 2024 01:36 UTC

"Tucker Taft" <tucker.taft@gmail.com> wrote in message
news:afd791fa-853f-48fa-9223-759b12d4ed87n@googlegroups.com...
On Sunday, January 14, 2024 at 6:05:45?AM UTC-5, Blady wrote:
>> Hello,
>>
>> 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"?
>
>The idea was to support the explicit use of new String'(...), X.all, and
>Unchecked_Deallocation
>rather than the implicit use of the heap inherent in Unbounded strings. It
>was recognized that you
>need a single global access type to avoid having to do conversions all over
>the place. This
>predated the availability of stand-alone objects of an anonymous access
>type
>(aka "SAOOAAATs" ;-), but those are not universally loved either. It
>certainly cannot be
>removed now without potentially very painful disruption of existing users.
>It could be moved
>to a different package without too much disruption, but I haven't seen any
>groundswell of interest
>in doing that either.

I'm dubious that there are any such users. Certainly, in the handful of
cases where I needed such a type, I just declared it (strong typing, you
know?) and never thought of Ada.Strings.Unbounded as being a place to find
such a type already defined. It is such an odd place I doubt anyone outside
of perhaps the people who defined the type ever used it.

OTOH, I agree that the compatibility impact is non-zero (anyone who did use
it would have to change their code), and the benefit of removing the type at
this point is close to zero (junk declarations abound in long-term Ada
packages, what's one more; and certainly there is a lot of unused stuff in
any particular reusable package and any particular use), so the cost-benefit
ratio doesn't seem to make a change here worth it. An Ada successor language
would design Ada.Strings.Unbounded rather differently (so as to be able to
use string literals directly with the type) and probably would include
universal character support as well, so it's hard to find an important
reason to change this.

Also, I'm pretty sure we're discussed this within the ARG several times in
the past, so this is well-trodden ground.

Randy.

Re: String_Access in unbounded string handling?

<upb61i$11uh0$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10411&group=comp.lang.ada#10411

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: p.p11@orange.fr (Blady)
Newsgroups: comp.lang.ada
Subject: Re: String_Access in unbounded string handling?
Date: Tue, 30 Jan 2024 16:53:22 +0100
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <upb61i$11uh0$1@dont-email.me>
References: <uo0f65$dlcm$1@dont-email.me>
<afd791fa-853f-48fa-9223-759b12d4ed87n@googlegroups.com>
<uocjlt$2qt8r$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Jan 2024 15:53:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="98e9d514af18df5c5d5a35536286b84d";
logging-data="1112608"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+M9otq9EmFIGySlrPQs0hs"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:bJ6f9PLalxlljsKhsUEmiPsuCLQ=
In-Reply-To: <uocjlt$2qt8r$1@dont-email.me>
Content-Language: fr, en-US
 by: Blady - Tue, 30 Jan 2024 15:53 UTC

Le 19/01/2024 à 02:36, Randy Brukardt a écrit :
> "Tucker Taft" <tucker.taft@gmail.com> wrote in message
> news:afd791fa-853f-48fa-9223-759b12d4ed87n@googlegroups.com...
> On Sunday, January 14, 2024 at 6:05:45?AM UTC-5, Blady wrote:
>>> Hello,
>>>
>>> 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"?
>>
>> The idea was to support the explicit use of new String'(...), X.all, and
>> Unchecked_Deallocation
>> rather than the implicit use of the heap inherent in Unbounded strings. It
>> was recognized that you
>> need a single global access type to avoid having to do conversions all over
>> the place. This
>> predated the availability of stand-alone objects of an anonymous access
>> type
>> (aka "SAOOAAATs" ;-), but those are not universally loved either. It
>> certainly cannot be
>> removed now without potentially very painful disruption of existing users.
>> It could be moved
>> to a different package without too much disruption, but I haven't seen any
>> groundswell of interest
>> in doing that either.
>
> I'm dubious that there are any such users. Certainly, in the handful of
> cases where I needed such a type, I just declared it (strong typing, you
> know?) and never thought of Ada.Strings.Unbounded as being a place to find
> such a type already defined. It is such an odd place I doubt anyone outside
> of perhaps the people who defined the type ever used it.
>
> OTOH, I agree that the compatibility impact is non-zero (anyone who did use
> it would have to change their code), and the benefit of removing the type at
> this point is close to zero (junk declarations abound in long-term Ada
> packages, what's one more; and certainly there is a lot of unused stuff in
> any particular reusable package and any particular use), so the cost-benefit
> ratio doesn't seem to make a change here worth it. An Ada successor language
> would design Ada.Strings.Unbounded rather differently (so as to be able to
> use string literals directly with the type) and probably would include
> universal character support as well, so it's hard to find an important
> reason to change this.

At least, the type String_Access could be tagged as obsolescent.

Pascal.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor