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,539c82cafef83539 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Add Finalization Date: 22 Sep 2004 22:59:20 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1095890721 21568 62.49.19.209 (22 Sep 2004 22:05:21 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 22 Sep 2004 22:05:21 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:3968 Date: 2004-09-22T22:59:20+01:00 List-Id: christoph.grein@eurocopter.com writes: > In article , > Simon Wright writes: > > kevin.cline@gmail.com (Kevin Cline) writes: > > > >> For example, I found this at http://www.gidenstam.org/Ada/: > > > >> This library, the Add Finalization Anywhere Library, provides a > >> nice(?) way to add finalization to any (limited) tagged type at any > >> level. The structure of the library is inspired by Christoph Karl > >> Walter Grein's library for adding finalization to library level > >> tagged types and my library is designed to integrate well with his. > >> > >> However, since declaring controlled types elsewhere than at the > >> library level isn't supported by Ada there is a lot of hackish > >> things going on inside the library. Currently, I don't know whether > >> the these things work on any other compiler than GNAT 3.13p and > >> whether they are at all sane." > > > > I'm pretty sure that Christophe's library only worked because of bugs > > in GNAT 3.13p. > > Simon (I assume the above quote I found in another thread was correct, > so you wrote this) > > Why on earth do you think this? My library for adding controlledness > to limited types works perfectly well. I somehow missed the magic word "limited" in the OP's article. I think I confused his "declaring controlled types at other than the library level" with "unlimited", so when I read your article I saw the problematic aspects of the unlimited version which you report instead of the good aspects of the limited version. Your "limited" library indeed works just fine. Apologies. -- Simon Wright 100% Ada, no bugs.