comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-dejanews.com>
Subject: Re: pragma Elaborate (Comp. Unit) question.
Date: 1999/05/25
Date: 1999-05-25T00:00:00+00:00	[thread overview]
Message-ID: <7id6vb$3gf$1@nnrp1.deja.com> (raw)
In-Reply-To: 3749F3B9.202F7A13@mitre.org

In article <3749F3B9.202F7A13@mitre.org>,
  "Robert I. Eachus" <eachus@mitre.org> wrote:
 Better is to restructure your
> program so that it is easy.  This often involves spliting
packages or
> moving some initialization code into the main program.
>
>                                         Robert I. Eachus


Many legacy programs have a huge mess when it comes to
elaboration issues.

The simple rule for elaboration is the same as elsewhere
in Ada, your code should NOT depend on any knowledge of
what is in a body.

This means you need to use Elaborate_All to make sure that
all packages are elaborated as needed.

If you are starting with new code, by far the best approach is
to completely abandon the dynamic model of run time checking,
and use the default static model of GNAT, which guarantees a
correct elaboration order at compile time.


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---




  reply	other threads:[~1999-05-25  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-24  0:00 pragma Elaborate (Comp. Unit) question Robert I. Eachus
1999-05-25  0:00 ` Robert Dewar [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-05-21  0:00 Michael
1999-05-22  0:00 ` Thierry Lelegard
1999-05-22  0:00   ` Robert Dewar
replies disabled

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