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 X-Google-Attributes: gid103376,public From: "R. Tim Coslet" Subject: Re: Generic packages Date: 2000/02/16 Message-ID: <38AAE192.4D51E2C0@kaisere.com>#1/1 X-Deja-AN: 586599760 Content-Transfer-Encoding: 7bit References: <38AAAC43.D8862190@mdstud.chalmers.se> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-la.pbi.net 950722771 206.170.24.110 (Wed, 16 Feb 2000 09:39:31 PST) Organization: SBC Internet Services MIME-Version: 1.0 NNTP-Posting-Date: Wed, 16 Feb 2000 09:39:31 PST Newsgroups: comp.lang.ada Date: 2000-02-16T00:00:00+00:00 List-Id: Put the Generic package inside a package containing definitions for all types that the Generic package requires (that aren't defined elsewhere). Either that or make the Generic package a child of the package containing the type definitions. David Olsson wrote: > 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