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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,54d6c9fe8e306128,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!proxad.net!cleanfeed1-a.proxad.net!nnrp10-1.free.fr!not-for-mail Return-Path: X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Ada.Containers.Indefinite_Doubly_Linked_Lists Date: Mon, 5 Feb 2007 11:47:57 -0600 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Ada.Containers.Indefinite_Doubly_Linked_Lists Thread-Index: AcdJTcVXa6zhsrYMS8av0/+0wekKUg== From: "Carroll, Andrew" To: X-Virus-Scanned: amavisd-new at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.9rc1 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.ada Message-ID: X-Leafnode-NNTP-Posting-Host: 88.191.17.134 Organization: Guest of ProXad - France NNTP-Posting-Date: 05 Feb 2007 18:50:02 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1170697802 news-2.free.fr 2275 88.191.14.223:36588 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:8969 Date: 2007-02-05T18:50:02+01:00 I think then this is basically what I need to do (out of context and there may be mistakes). Type Attribute is record Name: String(50); Type: String(25); ... End record; Package Attribute_List is new new Ada.Containers.Indefinite_Doubly_Linked_Lists (Attribute); Type Table is record Name: String(50); Attributes: Attribute_List; End record Package Table_List is new Ada.Containers.Indefinite_Doubly_Linked_Lists (Table); I'm kind of lost though as to where these package declarations should go. Should they be like: Package Table_List_Thingy is Type Attribute is record Name: String(50); Type: String(25); ... End record; Package Attribute_List is new new Ada.Containers.Indefinite_Doubly_Linked_Lists (Attribute); Type Table is record Name: String(50); Attributes: Attribute_List; End record Package Table_List is new Ada.Containers.Indefinite_Doubly_Linked_Lists (Table); End Table_List_Thingy; OR Procedure RunMe(...) is=20 Type Attribute is record Name: String(50); Type: String(25); ... End record; Package Attribute_List is new new Ada.Containers.Indefinite_Doubly_Linked_Lists (Attribute); Type Table is record Name: String(50); Attributes: Attribute_List; End record Package Table_List is new Ada.Containers.Indefinite_Doubly_Linked_Lists (Table); Begin ... End RunMe; What are your suggestions? Andrew