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-25 05:03:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Pragma Export and initialized variables Date: 25 Jan 2002 07:03:35 -0600 Organization: LJK Software Message-ID: References: <877f1a1d.0201230215.32fcb15a@posting.google.com> <877f1a1d.0201240050.28d93959@posting.google.com> <7rHjSipcl0PM@eisner.encompasserve.org> <5ee5b646.0201241908.810e556@posting.google.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1011963819 15846 192.135.80.34 (25 Jan 2002 13:03:39 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 25 Jan 2002 13:03:39 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:19303 Date: 2002-01-25T07:03:35-06:00 List-Id: In article <5ee5b646.0201241908.810e556@posting.google.com>, dewar@gnat.com (Robert Dewar) writes: > 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. >From previous discussion in this newsgroup, I was under the impression that adainit had to be called by the foreign main program to get the elaboration code to be executed at all, especially when the Ada code was in a shareable image (DLL). Is elaboration handled automatically for the default case in all environments where Ada is called from a foreign language ?