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=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aa85b7e82b398299,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-13 01:05:25 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: tilmanglotzner@hotmail.com (Tilman Glotzner) Newsgroups: comp.lang.ada Subject: generic package with configuration paramenter Date: 13 Nov 2001 01:05:25 -0800 Organization: http://groups.google.com/ Message-ID: <8cffca5.0111130105.366e0491@posting.google.com> NNTP-Posting-Host: 194.39.218.254 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1005642325 27141 127.0.0.1 (13 Nov 2001 09:05:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 13 Nov 2001 09:05:25 GMT Xref: archiver1.google.com comp.lang.ada:16401 Date: 2001-11-13T09:05:25+00:00 List-Id: 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 ? Do I need to define T_MODE in a package wrapped around the generic package: package L is type T_MODE is (FIFO,FILO); generic type T_ITEM is private; MODE: T_MODE; pacakge LIST is .. end LIST; Or can I define it with the generic package ? Thanks, Tilman