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!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Community Input for the Maintenance and Revision of the Ada Programming Language Date: Tue, 12 Sep 2017 09:15:35 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <915874b5-52c0-4aa8-9023-82fddedb816f@googlegroups.com> <323ae5e6-f2ce-4a15-b874-906a670f331c@googlegroups.com> <35e49f52-16da-4f1a-b2e3-b8d07d736a0d@googlegroups.com> NNTP-Posting-Host: vZYCW951TbFitc4GdEwQJg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 X-Notice: Filtered by postfilter v. 0.8.2 Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:48034 Date: 2017-09-12T09:15:35+02:00 List-Id: On 12/09/2017 09:02, Tarjei Jensen wrote: > On Tuesday, 12 September 2017 08:38:16 UTC+2, gautier...@hotmail.com wrote: >> Have a look at the package Ada.Strings.Bounded ... >> It is rarely encountered in programs, but available since Ada 95. >> _________________________ >> Gautier's Ada programming >> http://gautiersblog.blogspot.com/search/label/Ada >> NB: follow the above link for a valid e-mail address > > Perhaps there is a reason for the non-use? Yes, bounded-length strings have no practical use in Ada. The reason for that is that differently to other languages Ada can return fixed-length strings on the stack and can pass string slices down where a fixed-length string is expected. This eliminates most of the cases for bounded-length strings, the minuscule rest is handled by Unbounded_Strings. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de