comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com (Robert Dewar)
Subject: Re: Pragma Export and initialized variables
Date: 24 Jan 2002 19:08:17 -0800
Date: 2002-01-25T03:08:18+00:00	[thread overview]
Message-ID: <5ee5b646.0201241908.810e556@posting.google.com> (raw)
In-Reply-To: 7rHjSipcl0PM@eisner.encompasserve.org

Kilgallen@SpamCop.net (Larry Kilgallen) wrote in message news:<7rHjSipcl0PM@eisner.encompasserve.org>...
>  Certainly Compaq Ada (83) takes
> care of elaboration in this circumstance without any special call,


You miss the point here. The adainit and adafinal
procedures recommended in the RM deal with the situation where you
want specific control over when the Ada initialization and
finalization occur in a mixed language
program. It is absolutely essential to have a specific call for this
level of control, which was not available in any
Ada 83 system.

You may well for example want to finalize an Ada subsystem
long before the final termination of the program.

Actually we find in the GNAT world that having only one
such set of entry points is inadequate, and the latest
version of GNAT has a special switch for gnatbind, -L
that can override the standard adainit/adafinal names. 
This allows different Ada subsystems or libraries to
be separately initialized and finalized as required at
the time required.



  reply	other threads:[~2002-01-25  3:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-23 10:15 Pragma Export and initialized variables Sandro Binetti
2002-01-23 22:04 ` Robert A Duff
2002-01-24  8:50   ` Sandro Binetti
2002-01-24 18:14     ` Stephen Leake
2002-01-24 19:29       ` Pascal Obry
2002-01-24 22:38         ` Larry Kilgallen
2002-01-25  3:08           ` Robert Dewar [this message]
2002-01-25 12:47             ` Marc A. Criley
2002-01-25 13:03             ` Larry Kilgallen
replies disabled

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