From: "Matthew Heaney" <mheaney@on2.com>
Subject: Re: generic package with configuration paramenter
Date: Tue, 13 Nov 2001 11:45:11 -0500
Date: 2001-11-13T11:45:11-05:00 [thread overview]
Message-ID: <tv2jabjmf7uf44@corp.supernews.com> (raw)
In-Reply-To: 8cffca5.0111130105.366e0491@posting.google.com
"Tilman Glotzner" <tilmanglotzner@hotmail.com> wrote in message
news:8cffca5.0111130105.366e0491@posting.google.com...
> Where can I define T_MODE ? Do I need to define T_MODE in a package
> wrapped around the generic package:
This should be adequate.
> Or can I define it with the generic package ?
Another way is to declare the type in a "root package," and then make the
generic package a (public) child:
package P is
type Mode_Type is (FIFO, LIFO);
end P;
generic
Mode : in Mode_Type;
package P.GQ is
type List_Type is private;
...
end P.GQ;
This way you can share this type among instantiations and other children of
P.
next prev parent reply other threads:[~2001-11-13 16:45 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 [this message]
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