From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Accessibility check failed
Date: Mon, 11 Aug 2014 13:17:07 -0700
Date: 2014-08-11T13:17:07-07:00 [thread overview]
Message-ID: <lsb8c3$kk7$1@dont-email.me> (raw)
In-Reply-To: <fec9c4a0-7084-431b-8071-7ae6910d823f@googlegroups.com>
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
next prev parent reply other threads:[~2014-08-11 20:17 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-11 2:12 Accessibility check failed hreba
2014-08-11 5:32 ` Jeffrey Carter
2014-08-11 16:45 ` hreba
2014-08-11 16:55 ` Jeffrey Carter
2014-08-12 11:57 ` hreba
2014-08-11 19:56 ` sbelmont700
2014-08-11 20:17 ` Jeffrey Carter [this message]
2014-08-11 20:28 ` sbelmont700
2014-08-11 21:14 ` Jeffrey Carter
-- strict thread matches above, loose matches on Subject: below --
2015-11-29 18:03 accessibility " Serge Robyns
2015-11-29 18:37 ` Jeffrey R. Carter
2015-11-29 19:00 ` Serge Robyns
2015-11-29 22:32 ` Jeffrey R. Carter
2015-11-29 22:53 ` Serge Robyns
2015-11-30 2:04 ` Jeffrey R. Carter
2015-11-30 23:22 ` Randy Brukardt
2015-12-01 9:38 ` Serge Robyns
2015-11-29 19:15 ` Dmitry A. Kazakov
2015-11-29 22:40 ` Serge Robyns
2015-12-01 20:17 ` sbelmont700
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox