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,aa85b7e82b398299 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-13 08:41:47 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada Subject: Re: generic package with configuration paramenter Date: Tue, 13 Nov 2001 11:45:11 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <8cffca5.0111130105.366e0491@posting.google.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:16421 Date: 2001-11-13T11:45:11-05:00 List-Id: "Tilman Glotzner" wrote in message news:8cffca5.0111130105.366e0491@posting.google.com... > Where can I define T_MODE ? Do I need to define T_MODE in a package > wrapped around the generic package: This should be adequate. > Or can I define it with the generic package ? Another way is to declare the type in a "root package," and then make the generic package a (public) child: package P is type Mode_Type is (FIFO, LIFO); end P; generic Mode : in Mode_Type; package P.GQ is type List_Type is private; ... end P.GQ; This way you can share this type among instantiations and other children of P.