From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Delayed deallocation of non-terminated task in Gnat?
Date: Thu, 01 Sep 2011 07:58:07 -0400
Date: 2011-09-01T07:58:07-04:00 [thread overview]
Message-ID: <wccmxeoscds.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: e87ef42f-cda3-4b01-9d38-7222f7ff171d@x11g2000prb.googlegroups.com
Adam Beneschan <adam@irvine.com> writes:
> On Aug 31, 11:21�am, Robert A Duff <bobd...@shell01.TheWorld.com>
> wrote:
>> Adam Beneschan <a...@irvine.com> writes:
>> > Actually, I just found this in the Ada 83 manual (13.10.1(8)):
>>
>> > "If X designates a task object, the call FREE(X) [where FREE is an
>> > instance of Unchecked_Deallocation] has no effect on the task
>> > desginated by the value of the task object. �The same holds for any
>> > subcomponent of the object designated by X, if this subcomponent is a
>> > task object."
>>
>> > This language got dropped in Ada 95, but I think it was intended that
>> > these still be the semantics, for a task without discriminants (Ada 83
>> > did not allow task discriminants). �I'm not sure why the language was
>> > omitted; ...
>>
>> It might have to do with the fact that task values don't formally
>> "designate" anymore.
>
> But access objects do, and in the RM83 paragraph, X is an access
> object.
Right, but there are two "designate" in the Ada 83 wording.
I was referring to the second one.
In Ada 83, a task object contains a task value, which is a pointer
that designates a task. So if you have an access-to-task object,
it's value designates a task object whose value designates the task.
>...By the way, the only way one can know that
> the RM doesn't say anything happens to the task is to read and fully
> understand the entire RM, ...
Yeah, that's a problem.
- Bob
next prev parent reply other threads:[~2011-09-01 11:58 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-30 13:22 Delayed deallocation of non-terminated task in Gnat? Marc C
2011-08-30 15:20 ` Dmitry A. Kazakov
2011-08-31 18:12 ` Robert A Duff
2011-08-31 19:23 ` Dmitry A. Kazakov
2011-08-31 20:58 ` Robert A Duff
2011-08-31 21:16 ` Jeffrey Carter
2011-08-31 20:25 ` J-P. Rosen
2011-08-31 21:09 ` Robert A Duff
2011-08-31 21:53 ` Simon Wright
2011-08-30 15:38 ` Adam Beneschan
2011-08-30 16:42 ` Dmitry A. Kazakov
2011-08-30 18:57 ` Niklas Holsti
2011-08-30 19:23 ` Dmitry A. Kazakov
2011-08-31 16:39 ` Adam Beneschan
2011-08-31 18:21 ` Robert A Duff
2011-08-31 23:28 ` Adam Beneschan
2011-09-01 11:58 ` Robert A Duff [this message]
2011-08-31 20:30 ` J-P. Rosen
2011-08-31 22:36 ` Adam Beneschan
2011-09-01 5:24 ` J-P. Rosen
2011-08-31 18:08 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox