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,becfcd482f73209e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-08 09:45:47 PST Path: newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttls1.wa.home.com.POSTED!not-for-mail From: "Mark" Newsgroups: comp.lang.ada References: <9d93ri$lhv$2@newsg3.svr.pol.co.uk> <9d949f$kto$1@newsg1.svr.pol.co.uk> Subject: Re: Trouble with renaming types Organization: Lundquist X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: <%oVJ6.129347$xN4.8316100@news1.sttls1.wa.home.com> Date: Tue, 08 May 2001 16:45:47 GMT NNTP-Posting-Host: 24.20.66.39 X-Complaints-To: abuse@home.net X-Trace: news1.sttls1.wa.home.com 989340347 24.20.66.39 (Tue, 08 May 2001 09:45:47 PDT) NNTP-Posting-Date: Tue, 08 May 2001 09:45:47 PDT Xref: newsfeed.google.com comp.lang.ada:7333 Date: 2001-05-08T16:45:47+00:00 List-Id: "Bob McChesney" wrote in message news:9d949f$kto$1@newsg1.svr.pol.co.uk... > Oh, forgot to mention, I'm not using: > > 'type Dictionary is new WordSet.Set' > > because when I do that all the functions of WordSet cannot operate on type > Dictionary. Yes and no... subprograms defined immediately within Wordset, if they operate on type Set, are "primitive operations" of Set and will be inherited (think of that as "duplicated") for type Dictionary. But subprograms defined elsewhere that operate operate on Set are not part of type Set, so they can't be inherited by Dictionary. > > What I need is to be able to give type WordSet.Set a new name, but still > allow all oof the WordSet functions/procedures to be able to work on it. > To "alias" a type with an interchangeable name, say this: subtype Dictionary is Wordset.Set; (note, no "new" in there... :-) Have fun, -- mark