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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Last chance handler on a PC Date: Thu, 30 Jan 2020 23:32:39 +0200 Organization: Tidorum Ltd Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net THX+Q2Wz9WZLlBX8UKa5XgKm5jrIhEUf1V7siQ1bsjDCO3a0WB Cancel-Lock: sha1:VOYE25vxkdWuYFscIA+A4o9wxrY= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:57995 Date: 2020-01-30T23:32:39+02:00 List-Id: On 2020-01-30 22:51, Jeffrey R. Carter wrote: > On 1/30/20 9:26 PM, Niklas Holsti wrote: >> >> Looks good, but to catch all elaboration-time exceptions (in other >> packages) the package that executes that call, in its own elaboration >> code, must be elaborated before all other packages. Do you have some >> easy way to ensure that, without inserting elaboration pragmas in all >> other packages? > > Of course that call has to be done before anything that might raise an > exception during elaboration. Usually you'd put it in its own pkg, and > then every other library-level unit in the system would with it with a > pragma Elaborate_Body for it. Yes. > If everything is part of a hierarchy, then only the spec of the root > package of the hierarchy should need to do that. That's a good idea, thanks, I'll remember it for next time. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .