From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: generic package with configuration paramenter
Date: 13 Nov 2001 17:25:13 -0500
Date: 2001-11-13T22:27:49+00:00 [thread overview]
Message-ID: <usnbie2ba.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 8cffca5.0111130105.366e0491@posting.google.com
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
next prev parent reply other threads:[~2001-11-13 22:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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