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: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Using generic package to store and retrieve string data Date: Sat, 8 Oct 2016 09:07:32 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <9cbda86b-57e3-4f9c-81bb-03a9a28a4cb6@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 8 Oct 2016 16:07:23 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="6df4b173985f7c5c043cea362c370ff7"; logging-data="14938"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9dl2N7QNAPMBVHyFEZA+0mzhROEPMfpM=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: Cancel-Lock: sha1:71Kp5hFYyp0UK2ArmiFrgEIL36Q= Xref: news.eternal-september.org comp.lang.ada:32053 Date: 2016-10-08T09:07:32-07:00 List-Id: On 10/08/2016 03:17 AM, Dmitry A. Kazakov wrote: > > The string body will be allocated in the pool not on the stack. That, not > always, but usually defeats the purpose of having a stack of strings. I fail to see this as an issue; the stack's behavior will be what the OP wants. I was using Unbounded_String simply as a holder for String that provides a definite type that can be used to instantiate the generic stack pkg given. Indefinite_Holders would have also worked. -- Jeff Carter "You empty-headed animal-food-trough wiper." Monty Python & the Holy Grail 04