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,34cc14b2a30b4c03 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!postnews.google.com!z8g2000yqz.googlegroups.com!not-for-mail From: AdaMagica Newsgroups: comp.lang.ada Subject: Re: Wikibook on Ada Programming - Object Orientation Date: Thu, 8 Jul 2010 11:09:51 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4758a0b7-21f7-4a8e-97ec-d9468d5d598f@j4g2000yqh.googlegroups.com> <2dcc40df-72f1-443c-9afd-4415af4e63b9@k39g2000yqb.googlegroups.com> NNTP-Posting-Host: 91.13.232.187 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1278612591 9673 127.0.0.1 (8 Jul 2010 18:09:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 8 Jul 2010 18:09:51 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z8g2000yqz.googlegroups.com; posting-host=91.13.232.187; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:12271 Date: 2010-07-08T11:09:51-07:00 List-Id: On 8 Jul., 18:07, Ludovic Brenta wrote: > On Jul 8, 11:34=A0am, AdaMagica wrote: > > I wrote a test case and confirm this; there is indeed a problem. > > > For a detailed discussion of the problems involved, see my paper in > > Ada Letters, Volume XIX, Number 4, December 1999, which you can also > > find here: > > >http://www.christ-usch-grein.homepage.t-online.de/Ada/Finalization.html > > I'm not sure your solution works in all cases because it uses only one > "slot" per task, per tagged type, to store the access value to the > enclosing object. My gut feeling is that this makes assumptions as to > the ordering of calls to Adjust and Finalize that may not be always > correct in the presence of multiple objects of the same type. But this is the essence of the paper - it *can only work for limited types* just because of all this. There is no such solution with mixins for non-limited!