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 14:38:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: generic package with configuration paramenter Date: 13 Nov 2001 17:25:13 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <8cffca5.0111130105.366e0491@posting.google.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1005690469 2293 128.183.220.71 (13 Nov 2001 22:27:49 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 13 Nov 2001 22:27:49 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:16469 Date: 2001-11-13T22:27:49+00:00 List-Id: tilmanglotzner@hotmail.com (Tilman Glotzner) writes: > Hello, > > I am writting a generic package and I would like to add to add a > configuring > parameter when instanciating the package that is defined within the > generic package. > > generic > type T_ITEM is private; > MODE: T_MODE; -- type T_MODE is (FIFO,FILO); > package LIST is > ... > end LIST; > > Where can I define T_MODE ? Put it in a different package, made visible by 'with': package L is type T_MODE is (FIFO, FILO); end L; with L; generic type T_ITEM is private; MODE : T_MODE; package LIST is ... end LIST -- Stephe