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!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Community Input for the Maintenance and Revision of the Ada Programming Language Date: Tue, 12 Sep 2017 08:35:20 +0100 Organization: A noiseless patient Spider Message-ID: References: <915874b5-52c0-4aa8-9023-82fddedb816f@googlegroups.com> <323ae5e6-f2ce-4a15-b874-906a670f331c@googlegroups.com> <35e49f52-16da-4f1a-b2e3-b8d07d736a0d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader.eternal-september.org; posting-host="38188849e0ca81774c9f26087babd7f1"; logging-data="23313"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/XLtbYHnm2uZlxx5UjpkQdjgQfnqwqRw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (darwin) Cancel-Lock: sha1:5jj7cKa+1E9bdmbmpB9TSBWy5Tc= sha1:w5qJAZgnwkXYkh8et1NgsTU/MQA= Xref: news.eternal-september.org comp.lang.ada:48037 Date: 2017-09-12T08:35:20+01:00 List-Id: "Dmitry A. Kazakov" writes: > 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. Bounded_Strings are good where you can't use heap allocation or finalization (e.g. in smaller embedded systems).