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,589be85ceba0317c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-07 20:41:47 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mindspring.net!not-for-mail From: Larry Hazel Newsgroups: comp.lang.ada Subject: Re: new types Date: Mon, 07 May 2001 22:41:16 -0500 Organization: MindSpring Enterprises Message-ID: <3AF76ADC.1E8E5771@mindspring.com> References: <9d7m66$s5b$1@news5.svr.pol.co.uk> NNTP-Posting-Host: c7.ae.9c.31 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 8 May 2001 03:41:12 GMT X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en,x-ns11F8K63r3NhQ,x-ns2r2e09OnmPe2 Xref: newsfeed.google.com comp.lang.ada:7297 Date: 2001-05-08T03:41:12+00:00 List-Id: Bob McChesney wrote: > > Could anyone please help me? I'm trying to make a new type of an access > type. Is that possible? > > eg. > you know you can do: > type BobType is new Integer > > 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. > > Thanks, > Bob McChesney Set_Class.Set doesn't exist if Set_Class is generic. A new type Set is created for each instantiation of Set_Class. Larry