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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,589be85ceba0317c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-08 06:36:48 PST Path: newsfeed.google.com!newsfeed.stanford.edu!newsfeed.mesh.ad.jp!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <9d7m66$s5b$1@news5.svr.pol.co.uk> <3AF76ADC.1E8E5771@mindspring.com> Subject: Re: new types Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Tue, 08 May 2001 09:36:19 EDT Organization: http://www.newsranger.com Date: Tue, 08 May 2001 13:36:19 GMT Xref: newsfeed.google.com comp.lang.ada:7320 Date: 2001-05-08T13:36:19+00:00 List-Id: In article <3AF76ADC.1E8E5771@mindspring.com>, Larry Hazel says... > >Bob McChesney wrote: >> >> but can you do: >> type BobType is new Set_Class.Set >> where Set is: >> type Set access Set_Header >> ????? >> >> I've tried to do this and I get the error 'invalid prefix in selected >> component "Set_Class" ' >> >> I don't know if it matters but Set_Class is generic. >Set_Class.Set doesn't exist if Set_Class is generic. A new type Set is created >for each instantiation of Set_Class. Right. In other words, you'll have to instantiate the generic first: package My_Set is new Set_Class; Then use the *instantiation* name in your type. type Bobtype is new My_Set.Set; --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com