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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,becfcd482f73209e,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-08 08:37:30 PST Path: newsfeed.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!diablo.theplanet.net!news.theplanet.net!newspost.theplanet.net!not-for-mail From: "Bob McChesney" Newsgroups: comp.lang.ada Subject: Trouble with renaming types Date: Tue, 8 May 2001 16:37:45 +0100 Message-ID: <9d93ri$lhv$2@newsg3.svr.pol.co.uk> NNTP-Posting-Host: modem-48.north-carolina.dialup.pol.co.uk X-Trace: newsg3.svr.pol.co.uk 989336242 22079 62.137.84.48 (8 May 2001 15:37:22 GMT) NNTP-Posting-Date: 8 May 2001 15:37:22 GMT X-Complaints-To: abuse@theplanet.net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: newsfeed.google.com comp.lang.ada:7327 Date: 2001-05-08T15:37:22+00:00 List-Id: Can anyone help me with this problem I have please? I'm instantiating a generic package Set_Class from within another package. I instantiate the package as WordSet, and this means a resulting type that I need to use is WordSet.Set. However, I want to be able to reference this type under another name from outside the package (I want to call it Dictionary). I think I'm supposed to just use a subtype order (subtype Dictionary is WordSet.Set), however I'm keeping the instantiation of the package private, which means I can't do this unless I put the subtype order after the instantiation (which would place it inside the private area and it doesn't like that). So can anyone tell me a way of renaming a private type, inside a package? That would be really good. So far the only way it's worked is to take everything out of private but this is not how I need it. Any help would be much appreciated! Thanks, Bob