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 X-Google-Thread: 103376,37e636c1c9bae8a1,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-31 10:15:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!129.240.148.23!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Combining packages Date: Wed, 31 Oct 2001 18:15:55 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: NNTP-Posting-Host: kiuk0156.chembio.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tyfon.itea.ntnu.no 1004552155 15140 129.241.83.82 (31 Oct 2001 18:15:55 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 31 Oct 2001 18:15:55 +0000 (UTC) User-Agent: slrn/0.9.7.2 (Linux) Xref: archiver1.google.com comp.lang.ada:15493 Date: 2001-10-31T18:15:55+00:00 List-Id: Hi I have made a generic package called Double_Linked_List. I have also a package called Wordgroups which has the type Wordgroup and several functions/procedures connected with the type. Now I want to have a List of Wordgroups. First I made a child package Wordgroups.List of the Wordgroups pacakge like this: with Double_Linked_List; with Wordgroups; package Wordgroups.List is new Double_Linked_List (Data_Type => Wordgroups.Wordgroup_Type); Now I relized that it would be nice to have a procedure like: procedure Add (List : in out List_Type; Word : in String; Explanation : in String) is Wordgroup : Wordgroup_Type; begin Create (Wordgroup, Word, Explanation); Append_Element (List, Wordgroup); end Add; so that I don't have to do: Create (Wordgroup, Word, Explanation); Append_Element (List, Wordgroup); in the rest of the program, only Add. But I cannot add this to Wordgroups.List. I would appreciate some hints on how to do something like this. Thanks in advance. Preben Randhol -- �.., chaos is found in greatest abundance wherever order is being sought. It always defeats order, because it is better organized.� -- Interesting Times, Terry Pratchett