comp.lang.ada
 help / color / mirror / Atom feed
From: tilmanglotzner@hotmail.com (Tilman Glotzner)
Subject: generic package with configuration paramenter
Date: 13 Nov 2001 01:05:25 -0800
Date: 2001-11-13T09:05:25+00:00	[thread overview]
Message-ID: <8cffca5.0111130105.366e0491@posting.google.com> (raw)

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



             reply	other threads:[~2001-11-13  9:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-13  9:05 Tilman Glotzner [this message]
2001-11-13  9:47 ` generic package with configuration paramenter Petter Fryklund
2001-11-13 16:45 ` Matthew Heaney
2001-11-13 22:25 ` Stephen Leake
2001-11-16  0:59   ` Nick Roberts
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox