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!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Using generic package to store and retrieve string data Date: Sat, 08 Oct 2016 10:01:53 +0100 Organization: A noiseless patient Spider Message-ID: References: <9cbda86b-57e3-4f9c-81bb-03a9a28a4cb6@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="97b731c393a3b6adeaffb0d6e8195bfd"; logging-data="18335"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Q6elj9l7fUhCpfdWfnZDHFbHLTylR1dU=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:w7FGffV9FKnpXJTGSI+3YVje/vQ= sha1:XsTmhe8OkCE27VSmSCZKUELgxAM= Xref: news.eternal-september.org comp.lang.ada:32047 Date: 2016-10-08T10:01:53+01:00 List-Id: "Dmitry A. Kazakov" writes: > On 2016-10-08 01:11, Jeffrey R. Carter wrote: > >> If your Strings may have differing lengths, then you should either >> use Unbounded_String or one of the indefinite containers. > > Unbounded_String is not self-contained. Normally it is important for a > stack and containers to have this. It looks self-contained to me. (I mean, if I 'with Ada.Strings.Unbounded' I can pretty-much use it without further ado; just a little complication with translating to/from String). > IMO, the best way to implement an indefinite elements LIFO is on top > of a custom memory pool. I doubt this is going to help the OP.