comp.lang.ada
 help / color / mirror / Atom feed
* generic package with configuration paramenter
@ 2001-11-13  9:05 Tilman Glotzner
  2001-11-13  9:47 ` Petter Fryklund
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tilman Glotzner @ 2001-11-13  9:05 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-11-16  0:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-13  9:05 generic package with configuration paramenter Tilman Glotzner
2001-11-13  9:47 ` Petter Fryklund
2001-11-13 16:45 ` Matthew Heaney
2001-11-13 22:25 ` Stephen Leake
2001-11-16  0:59   ` Nick Roberts

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