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,be8694f4e88e113d,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-29 02:12:45 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!opentransit.net!jussieu.fr!cnam.fr!not-for-mail From: user@domain.invalid Newsgroups: comp.lang.ada Subject: problems with generic package Date: Wed, 29 May 2002 11:08:41 +0200 Organization: Conservatoire National des Arts et Metiers Message-ID: <3CF49A99.1050005@domain.invalid> NNTP-Posting-Host: lmi14.cnam.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: kelvin.cnam.fr 1022663382 23031 163.173.228.14 (29 May 2002 09:09:42 GMT) X-Complaints-To: usenet@news.cnam.fr NNTP-Posting-Date: 29 May 2002 09:09:42 GMT User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us Xref: archiver1.google.com comp.lang.ada:24911 Date: 2002-05-29T09:09:42+00:00 List-Id: good morning i have declared a generic package generic_set with the following specification: generic type Element is private; package Generic_Set is ... end package; then in another package i introduced a tagged type with two derived types like this: type node is tagged null record; type place is new node with record ... end record; type transition is new node with record ... end record; how is it possible to declare a new package set over the node type? this declaration doesn't work : package nodes_set is new generic_set(element => node'class); error: instantiation error unconstrained subtype in component declaration actual for "Element" must be a definite subtype thanks for any help