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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e42470ffea97dc6a,start X-Google-Attributes: gid103376,public From: David Olsson Subject: Generic packages Date: 2000/02/16 Message-ID: <38AAAC43.D8862190@mdstud.chalmers.se>#1/1 X-Deja-AN: 586519721 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news-abuse@swip.net X-Trace: nntpserver.swip.net 950708944 193.15.120.60 (Wed, 16 Feb 2000 14:49:04 MET DST) Organization: Masthugget MIME-Version: 1.0 NNTP-Posting-Date: Wed, 16 Feb 2000 14:49:04 MET DST Newsgroups: comp.lang.ada Date: 2000-02-16T00:00:00+00:00 List-Id: If I want to make a generic package with a function as a generic parameter to the package, and that function returns a value of a specifik enumeration, so where can I define that enumeration. I can't do before generic and if I put it between generic and package, than the compiler thinks its a generic parameter to package and complains that it should be defined as (<>) or something. If I put it after package, then it wont be visible for the function. I guess you can put it in a seperate ads file, but that isn't pretty in my opinion. Is there another way ? /David