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!mx02.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Re-write a file in Ada Date: Tue, 19 Jan 2016 12:33:46 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <77e47c8b-7dcc-4e86-8f89-1f348cdf08dd@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 19 Jan 2016 12:33:46 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="da745e888d4a5182b5fda6212bbb0a63"; logging-data="25893"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GoXb8wsmWFZq58Rckv4nV8pl9qGXr4wA=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:e1XvbU2TpzUDbE2zNRqNJi/Q/Oo= Xref: news.eternal-september.org comp.lang.ada:29162 Date: 2016-01-19T12:33:46+00:00 List-Id: On Mon, 18 Jan 2016 09:25:45 -0800, comicfanzine wrote: >>Store your strings in one of the containers from >the Ada.Containers >>library. > >>-- Brian > > Thanks anyway but , that isn't what i asked . ... > There is a real issue , if this can't be done without your package . > > Plus , here : > https://en.wikibooks.org/wiki/Ada_Programming/Libraries/Ada.Containers > > It Say : " This language feature is only available in Ada 2005 " . More accurately, this isn't a standard language feature prior to Ada-2005. Container classes or something very like them were available earlier : you might take a look at the Booch Components (which are probably compatible with Ada-83) or even the Ada precursor to the C++ STL (Stepanov?). If you must reinvent the wheel, that's OK, but you'll have to take care of low level details like initialising the line count correctly yourself. -- Brian