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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9c25e1f865c6aea4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-24 19:08:18 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Pragma Export and initialized variables Date: 24 Jan 2002 19:08:17 -0800 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0201241908.810e556@posting.google.com> References: <877f1a1d.0201230215.32fcb15a@posting.google.com> <877f1a1d.0201240050.28d93959@posting.google.com> <7rHjSipcl0PM@eisner.encompasserve.org> NNTP-Posting-Host: 205.232.38.244 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1011928098 9273 127.0.0.1 (25 Jan 2002 03:08:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 25 Jan 2002 03:08:18 GMT Xref: archiver1.google.com comp.lang.ada:19296 Date: 2002-01-25T03:08:18+00:00 List-Id: 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.