From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1639fe015a22830b X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: generic packages (again) Date: 1999/11/19 Message-ID: <3834d859_4@news1.prserv.net>#1/1 X-Deja-AN: 550409805 Content-transfer-encoding: 7bit References: <812bo1$fir$1@bunyip.cc.uq.edu.au> Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 19 Nov 1999 04:55:53 GMT, 32.101.8.97 Organization: Global Network Services - Remote Access Mail & News Services Mime-version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-19T00:00:00+00:00 List-Id: In article <812bo1$fir$1@bunyip.cc.uq.edu.au> , "Riyaz Mansoor" 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