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!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: How can one record component be local and another not? Date: Thu, 7 May 2020 11:07:33 +0200 Organization: Adalog Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 7 May 2020 09:07:34 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="ced0c648581b9efbbca2447b6507ef60"; logging-data="28218"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XB7fXkq/G/L5eDvNGIILN" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cancel-Lock: sha1:D9xsKWJnHhCRffCy1KYlCAPGx+8= In-Reply-To: Content-Language: fr Xref: reader01.eternal-september.org comp.lang.ada:58621 Date: 2020-05-07T11:07:33+02:00 List-Id: Le 06/05/2020 à 19:30, Niklas Holsti a écrit : > Note that, although "Test" here is no doubt the program's main > subprogram and so its call (assuming it is not recursive) lasts almost > as long as the execution of the program, the compiler does not make use > of this fact to determine the life-times of types and objects in "Test". No, tasks declared in library packages could survive the main program. You may even have a "begin null; end" main program, and do all the work with library tasks. Moreover, there is no rule in Ada that makes the main subprogram "special". -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr