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!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.109.57.78.121.mobile.3.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Array of Unbounded_String vs Indefinite_Vectors(Natural, String) Date: Mon, 23 Oct 2017 19:30:15 +0200 Organization: JSA Research & Innovation Message-ID: <87o9oxojq0.fsf@jacob-sparre.dk> References: <9588f435-6437-458d-9a3a-468fc96e0865@googlegroups.com> <72d8aa16-ed2c-4d17-ae18-10f0be33e81f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: franka.jacob-sparre.dk; posting-host="109.57.78.121.mobile.3.dk:109.57.78.121"; logging-data="4175"; mail-complaints-to="news@jacob-sparre.dk" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:7vI7W4u/0K532iya9ZTM2P9pdZw= Xref: news.eternal-september.org comp.lang.ada:48576 Date: 2017-10-23T19:30:15+02:00 List-Id: Shark8 wrote: > Because I've found it to be the most natural solution to the problem > when I've had to do something similar. Though, to be fair, I /was/ > storing constant words (commands [or tokens]) rather than mutable > strings that could change length. Good point. If you're planning to change the strings after they have been inserted, that may be an argument in favour of using Unbounded_String (and thus allowing a "plain" array for the data structure). You might also consider if array/vector is the right kind of data structure. Are you sure it isn't a list or a set? Greetings, Jacob -- The so-called "desktop metaphor" of today's workstation is instead an "airplane-seat" metaphor.