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,28b389d4503cb555 X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: generic package dilemma Date: 1999/11/17 Message-ID: <383319e8_4@news1.prserv.net>#1/1 X-Deja-AN: 549856787 Content-transfer-encoding: 7bit References: <80u48b$ghr$1@bunyip.cc.uq.edu.au> <3832e27f_1@news1.prserv.net> <3832E75D.5B1BA719@mail.com> Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 17 Nov 1999 21:11:04 GMT, 129.37.213.163 Organization: Global Network Services - Remote Access Mail & News Services Mime-version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-17T00:00:00+00:00 List-Id: In article <3832E75D.5B1BA719@mail.com> , Mats Weber wrote: >> You should always elaborate packages that you instantiate: >> >> pragma Elaborate (Gen_Pack1); >> pragma Elaborate (Gen_Pack4); > > Use Elaborate_All: that way, if Gen_Pack* instantiates something else, > then that also gets elaborated. I didn't think Elaborate vs Elaborate_All made any difference for generics. From Cohen's AAASL, p682: (start of quote) In all other cases, however, a with clause for a library generic unit should be accompanied by an Elaborate pragma for that unit... An Elaborate_All pragma can be used instead of an Elaborate pragma, but this is not really necessary because the elaboration of a generic body never gives rise to a subprogram call. (end of quote) -- Science is, foremost, a method of interrogating reality: proposing hypotheses that seem true and then testing them -- trying, almost perversely, to negate them, elevating only the handful that survive to the status of a theory. Creationism is a doctrine, whose adherents are interested only in seeking out data that support it. George Johnson, NY Times, 15 Aug 1999