From: mheaney@on2.com (Matthew Heaney)
Subject: Re: Elaboration of nested generic package.
Date: 10 Jul 2003 08:45:59 -0700
Date: 2003-07-10T15:45:59+00:00 [thread overview]
Message-ID: <1ec946d1.0307100745.26d7d1ac@posting.google.com> (raw)
In-Reply-To: 5437fafb.0307091710.5cb4b0eb@posting.google.com
dlwester@hotmail.com (Don Westermeyer) wrote in message news:<5437fafb.0307091710.5cb4b0eb@posting.google.com>...
> >
> You should not need an Elaborate_All pragma if the specification
> contains pragma Elaborate_Body since the body is elaborated
> immediately after the specification.
But we're talking about a generic unit. I think that whenever you
instantiate a generic at library level, you need to use the
Elaborate_All pragma.
The categorization pragma inside the generic doesn't matter, because
that only applies to the instantiation (I think...), which doesn't
exist yet.
> It seems to me that the Ada language should have assumed an
> 'Elaborate_All' for every dependancy unless a pragma was used to
> specifically ignore it. It would seem the compilers should also know
> when it can ignore elaboration checking without the user specifying
> Pure or Preelaborate.
No. This would unnecessarily constrain the size of the set of all
possible elaboration orders.
> Usually I do use pragma Elaborate_All for every dependancy anyway
> since one does not have control over every software module developed.
> Using it is always safer and causes no penalties that I know of
> (assuming the design stays clear of mutual dependancies).
This is a very bad idea.
next prev parent reply other threads:[~2003-07-10 15:45 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-02 4:13 Elaboration of nested generic package christoph.grein
2003-07-08 3:05 ` Don Westermeyer
2003-07-08 17:46 ` Matthew Heaney
2003-07-10 1:10 ` Don Westermeyer
2003-07-10 1:35 ` Robert I. Eachus
2003-07-10 4:51 ` Robert I. Eachus
2003-07-10 6:58 ` Jean-Pierre Rosen
2003-07-10 15:08 ` Robert I. Eachus
2003-07-11 21:26 ` Robert A Duff
2003-07-10 14:12 ` Matthew Heaney
2003-07-10 15:39 ` Robert I. Eachus
2003-07-11 21:41 ` Robert A Duff
2003-07-14 18:35 ` Matthew Heaney
2003-07-15 17:19 ` Randy Brukardt
2003-07-16 15:24 ` Matthew Heaney
2003-07-17 2:08 ` Randy Brukardt
2003-07-17 15:54 ` Richard Riehle
2003-07-10 15:03 ` Don Westermeyer
2003-07-10 15:45 ` Matthew Heaney [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-07-09 5:21 christoph.grein
2003-07-01 20:14 Don Westermeyer
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox