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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.6.16 with SMTP id 16mr25966788iog.105.1511869688502; Tue, 28 Nov 2017 03:48:08 -0800 (PST) X-Received: by 10.157.32.78 with SMTP id n72mr1758636ota.12.1511869688405; Tue, 28 Nov 2017 03:48:08 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.kjsl.com!usenet.stanford.edu!193no1766611itr.0!news-out.google.com!193ni5748iti.0!nntp.google.com!i6no8172612itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 28 Nov 2017 03:48:08 -0800 (PST) In-Reply-To: <42736373-423a-42fb-8294-8a22fdb01e41@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2003:c7:83c9:d6fd:582a:5ba0:2794:19af; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 2003:c7:83c9:d6fd:582a:5ba0:2794:19af References: <4db43571-7f86-4e73-8849-c41160927703@googlegroups.com> <6496a10f-c97e-4e42-b295-2478ad464b2f@googlegroups.com> <6106dfe6-c614-4fc1-aace-74bf8d7435e3@googlegroups.com> <102d4df8-d392-4100-9a37-c49705397e4e@googlegroups.com> <2240ea85-c247-4097-9877-24ce32a47123@googlegroups.com> <42736373-423a-42fb-8294-8a22fdb01e41@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9ffe40c0-59a6-408e-8104-6dcfea319366@googlegroups.com> Subject: Re: Extending a third party tagged type while adding finalization From: AdaMagica Injection-Date: Tue, 28 Nov 2017 11:48:08 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:49214 Date: 2017-11-28T03:48:08-08:00 List-Id: Am Montag, 27. November 2017 20:53:59 UTC+1 schrieb Jere: > On Monday, November 27, 2017 at 1:37:22 PM UTC-5, AdaMagica wrote: > > The problem is in your generic parameter part. See section 3 of my pape= r and download the full code (see the end of the paper). > >=20 > > It's really a problem that opens the gates of hell as I've written as a= n intro. > > It can definitly only work for limited types. >=20 > Sorry about that. I copied it from your paper (and changed some names)= =20 > but I think I copied from the wrong place. I downloaded code, added=20 > controlled components to both Parent and Final. I saw the same results > (out of order initialization and finalization). I don't know how you > feel about reposting your copyrighted code so here is a handmade main > linking to your code to show what I mean: As far as I can see from browsing your code, it's the same as my code in th= e test program included in the zip file. > ****************************************** >=20 > The output for this is: > Initialize C1 > Initialize Final > Initialize C2 > Starting > Finalize C2 > Finalize Final > Finalize C1 >=20 > which is the same thing I was seeing with my version. Final is initializ= ed > before C2 and C2 is finalized before Final.=20 Yes, that's a side effect of the selfreference. Too bad.=20 > I can repost the modified version of your code if this isn't sufficient t= o > show the issue. I just wasn't sure if I should. The output from the > modified copy of your code: There's a commented output of the test program included in my zip file. So I think you got it working, no more problems with further derivations. I do not think there is a copyright problem, since the code has been publis= hed in Ada Letters. If you want to use it, you may want to add a link to th= is magazine, so that readers of your code can find further enlightenment :-= ) Or keep a copy of the zip file alongside with your code.