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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,48fa8e3cfaec41af X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-22 10:56:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!news.belwue.de!newsfeed.arcor-online.net!fr.clara.net!heighliner.fr.clara.net!proxad.net!proxad.net!newspeer1-gui.server.ntli.net!ntli.net!newsfep1-win.server.ntli.net.POSTED!53ab2750!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: Subject: Re: worth the hassle? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Mon, 22 Jul 2002 18:56:10 +0100 NNTP-Posting-Host: 80.5.140.234 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep1-win.server.ntli.net 1027360605 80.5.140.234 (Mon, 22 Jul 2002 18:56:45 BST) NNTP-Posting-Date: Mon, 22 Jul 2002 18:56:45 BST Organization: ntl Cablemodem News Service Xref: archiver1.google.com comp.lang.ada:27306 Date: 2002-07-22T18:56:10+01:00 List-Id: hmm, problem... This is the top of the unbounded doubly linked list. generic type Element_Type is limited private; type List_Id_Type is private; -- Assign A to B. -- with procedure Assign (A : in Element_Type; B : in out Element_Type) is <>; package Aqua.Lists.Linear.Unbounded.Doubly is ... end Aqua.Lists.Linear.Unbounded.Doubly; Let's say we have 2 types (a_type & b_type) derived from a single type, base_type and we want to store objects of all three types in the *same list*. How do we code assign for this situation? What happens if the derved classes are not known before hand? Is it even possible to put the all the types in the same list? Cheers, Chris