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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,be02bcdb8f46ddd5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread3.news.atl.earthlink.net.POSTED!14bb18d8!not-for-mail Sender: mheaney@MHEANEYX200 Newsgroups: comp.lang.ada Subject: Re: An improved Ada? References: <311c6b78.0409271138.1795d07c@posting.google.com> From: Matthew Heaney Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 28 Sep 2004 05:45:58 GMT NNTP-Posting-Host: 64.185.133.124 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.atl.earthlink.net 1096350358 64.185.133.124 (Mon, 27 Sep 2004 22:45:58 PDT) NNTP-Posting-Date: Mon, 27 Sep 2004 22:45:58 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news1.google.com comp.lang.ada:4304 Date: 2004-09-28T05:45:58+00:00 List-Id: jonas.nygren@telia.com (jn) writes: > Here is my small example, based on the simset-library from Simula, not > complete but it should be easy for you to fill out the rest:) I don't understand what your problem is. It looks like you need a list whose elements have type Book_In_Shelf. What's wrong with: package Book_Lists is new Ada.Containers.Doubly_Linked_Lists (Book_In_Shelf); If you need to move an element from one list onto another, then just use the Splice operation for lists. If you need a list whose elements have a class-wide type, then just use the indefinite list.