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!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Accessibility check failed Date: Mon, 11 Aug 2014 13:17:07 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 11 Aug 2014 20:17:08 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="a0c81a81d1281113b3831cf0c04e791a"; logging-data="21127"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+U1fzTo8+JQYVw+sRXFiaandDorvELSY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: Cancel-Lock: sha1:sle3v48SwPh5k0sp+Py8jLP2sY0= Xref: news.eternal-september.org comp.lang.ada:21668 Date: 2014-08-11T13:17:07-07:00 List-Id: On 08/11/2014 12:56 PM, sbelmont700@gmail.com wrote: > > procedure main is > > x : aliased test_lists_aux.ItemD := (Gen.Lists.ItemD with ch => '!'); > x_p : test_lists_aux.Item := new test_lists_aux.ItemD'(Gen.Lists.ItemD with ch => '!'); > y : test_lists_aux.Writer; > > > begin > > test_lists_aux.Proc (w => y, > itm => x_p); -- pass, lifetime is forever No, lifetime is until Main returns. Main can be withed and called from something else, or call itself recursively, possibly indirectly, so this is treated as having a lifetime less than forever even if we know it will be around for the life of the program. -- Jeff Carter "If a sperm is wasted, God gets quite irate." Monty Python's the Meaning of Life 56