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,a0b40cf773574050 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-24 09:04:46 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!newshub.northeast.verio.net!verio!newsfeed.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Error message: expect valid subtype mark to instantiate .... Date: 24 Dec 2003 12:04:46 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4138e9c3.0312240513.377090e8@posting.google.com> NNTP-Posting-Host: pip1-5.std.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1072285486 25004 192.74.137.185 (24 Dec 2003 17:04:46 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 24 Dec 2003 17:04:46 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:3783 Date: 2003-12-24T12:04:46-05:00 List-Id: gilmour@banda.lv (gilmour) writes: > Compiling 'Client_Account_List.ads' following message appears: > client_account_list.ads:4:47: expect valid subtype mark to instantiate "T" > Somebody please advise, what is wrong ??? You gave it the name of a package (Class_Client_Account). It wants the name of a type (to match the generic formal parameter T). By the way, I suggest you format your code properly, so it will be easier to read. For example: generic type T is private; --Any type package Class_List is type List is new Controlled with private; ... "generic" and "package" should be lined up, since they're part of the same piece of syntax. That way, you can see that T is a generic formal parameter of Class_List, and List is inside Class_List, and so forth. - Bob