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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4bd6ca8f7a1eb225 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.15.41 with SMTP id u9mr32064741pbc.3.1322581119003; Tue, 29 Nov 2011 07:38:39 -0800 (PST) Path: lh20ni38026pbb.0!nntp.google.com!news1.google.com!postnews.google.com!4g2000yqu.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Class with task destructor Date: Tue, 29 Nov 2011 07:37:20 -0800 (PST) Organization: http://groups.google.com Message-ID: <72c52548-441a-4109-ac8d-24b40eb037b2@4g2000yqu.googlegroups.com> References: <30604696.94.1322013045135.JavaMail.geo-discussion-forums@yqzz20> <80027d05-2740-4899-b43a-514100ec9bd2@p16g2000yqd.googlegroups.com> <40710291-64ed-46b8-9106-40b7d481effd@b32g2000yqn.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 X-Trace: posting.google.com 1322581040 30832 127.0.0.1 (29 Nov 2011 15:37:20 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 29 Nov 2011 15:37:20 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 4g2000yqu.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: ARLUEHNKC X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C),gzip(gfe) Xref: news1.google.com comp.lang.ada:19238 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-11-29T07:37:20-08:00 List-Id: On Nov 28, 7:36=A0pm, "Randy Brukardt" wrote: > > >Except that in the OP's case, there *is* a connection: the task has an > >access discriminant that will refer to the enclosing object, and if > >the task keeps running, it could use that discriminant. > > 13.11.2(11-15) covers this. Essentially, either no deallocation is done o= r > an exception is raised somewhere, sometime. I think Janus/Ada uses the th= ird > choice, but I'm not sure anymore. Thank you for the reference. I feel a bit silly that I quoted something two paragraphs above this but missed this important section. So, essentially, the OP's original attempt is prohibited by the language. That's useful information. -- Adam