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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d7b303cc707b3cd4 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Universal type Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1186165731.373877.257550@i13g2000prf.googlegroups.com> <1186165860.283741.102790@m37g2000prh.googlegroups.com> Date: Fri, 3 Aug 2007 21:10:43 +0200 Message-ID: <1ahn79bfztaga.35cwalkctrgj$.dlg@40tude.net> NNTP-Posting-Date: 03 Aug 2007 21:10:35 CEST NNTP-Posting-Host: 79fad164.newsspool4.arcor-online.net X-Trace: DXC=`HCKLRXUOMhFXUDVUnEXQm4IUK On Fri, 03 Aug 2007 11:31:00 -0700, shaunpatterson@gmail.com wrote: > Anyway, this generic list allows me to store one type of > data. Is there a way of taking this concept and store > many different types? What will you do with that list? The items of will have no single method in common, except some attributes like X'Address. It would be a quite useless thing. But, yes, technically you can. Root_Stream_Type and Root_Storage_Pool can hold anything. It is possible to implement a linked list with objects of any type in it. I don't what to go into details, let us just assume we already have one. So we have the function Next (Node : ...) return Some_Ptr; And? How are you going to determine what it points to? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de