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,46474020a5b291b7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.maxwell.syr.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Free'ing dynamic abstract tagged types.. Date: 21 Sep 2006 18:12:34 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1158872883.994303.80430@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1158876755 3043 192.74.137.71 (21 Sep 2006 22:12:35 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 21 Sep 2006 22:12:35 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news2.google.com comp.lang.ada:6692 Date: 2006-09-21T18:12:34-04:00 List-Id: "ldb" writes: > I can't figure out how to write the free routine, since unchecked > deallocation wants a pointer (presumably access_man), but all I have is > a class-wide pointer, and I can't figure out how, or if, I can convert > it. Does that make sense? You should use the same access type for allocation and deallocation. That is, if the result type of your "new" is Some_Access_Type, you should instantiate Unchecked_Deallocation with Some_Access_Type. - Bob