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/19 Message-ID: <383569db_2@news1.prserv.net>#1/1 X-Deja-AN: 550567265 Content-transfer-encoding: 7bit References: <80u48b$ghr$1@bunyip.cc.uq.edu.au> <3832e27f_1@news1.prserv.net> <3832E75D.5B1BA719@mail.com> <383319e8_4@news1.prserv.net> <3833F615.5AD7166C@mail.com> <383442e1_1@news1.prserv.net> <383510EA.9DFEE8B6@mail.com> Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 19 Nov 1999 15:16:43 GMT, 32.101.8.40 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 <383510EA.9DFEE8B6@mail.com> , Mats Weber wrote: > No. I totally agree with Robert Dewar here: never use Elaborate, use > Elaborate_All instead. OK, I'm convinced. Never use pragma Elaborate; always use pragma Elaborate_All. Either Norm's book is wrong, or I misinterpreted what he said (probably the latter). > Your approach of using Elaborate at each level, besides being hard to > enforce on a large project, puts unnecessary constraints on the > elaboration order: in our example, where P2I instantiates P2 > instantiates P1, valid elaboration orders are: P1, P2, P2I and P2, P1, > P2I. You are unnecessarily enforcing the first one with your approach. I just assumed that whenever you instantiate a package (inside another package), that you have to pragma Elaborate_All the generic unit. But you seem to advocate only a conditional application of this guideline. When specifically do you recommend using Elaborate_All, versus not needing to bother? -- It is impossible to feel great confidence in a negative theory which has always rested its main support on the weak points of its opponent. Joseph Needham, "A Mechanistic Criticism of Vitalism"