comp.lang.ada
 help / color / mirror / Atom feed
From: "Matthew Heaney" <matthew_heaney@acm.org>
Subject: Re: generic packages (again)
Date: 1999/11/19
Date: 1999-11-19T00:00:00+00:00	[thread overview]
Message-ID: <3834d859_4@news1.prserv.net> (raw)
In-Reply-To: 812bo1$fir$1@bunyip.cc.uq.edu.au

In article <812bo1$fir$1@bunyip.cc.uq.edu.au> , "Riyaz Mansoor" 
<s800032@student.uq.edu.au> wrote:

> now i want gen_pack1 (OR pack1, i really don't know) to be compiled
> separately so that any number of packages/programs maybe able to call it
> directly.

Just declare the instantiation as its own library unit:

--pack1.ads
with Gen_Pack1;
package Pack1 is new Get_Pack1;

--pack4.ads
with Pack1;
with Gen_Pack4;
package Pack4 is new Gen_Pack4 (Pack1);

--main.adb
with Pack1;  use Pack1;
with Pack4;  use Pack4;
procedure Main is ...;



--
Evolution is as well documented as any phenomenon in science, as
strongly as the earth's revolution around the sun rather than vice
versa.

Stephen Jay Gould, Time, 23 Aug 1999




  reply	other threads:[~1999-11-19  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-19  0:00 generic packages (again) Riyaz Mansoor
1999-11-19  0:00 ` Matthew Heaney [this message]
1999-11-20  0:00 ` Nick Roberts
1999-11-22  0:00   ` Riyaz Mansoor
     [not found]     ` <01bf350e$54514610$022a6282@dieppe>
1999-11-23  0:00       ` Riyaz Mansoor
1999-11-23  0:00         ` Robert Dewar
1999-11-24  0:00           ` Riyaz Mansoor
1999-11-24  0:00             ` Ted Dennison
replies disabled

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