comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Free'ing dynamic abstract tagged types..
Date: 21 Sep 2006 18:12:34 -0400
Date: 2006-09-21T18:12:34-04:00	[thread overview]
Message-ID: <wccodt8rhrh.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 1158872883.994303.80430@b28g2000cwb.googlegroups.com

"ldb" <ldb_nospam@hotmail.com> 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



  parent reply	other threads:[~2006-09-21 22:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-21 21:08 Free'ing dynamic abstract tagged types ldb
2006-09-21 22:12 ` Randy Brukardt
2006-09-22  7:41   ` Alex R. Mosteo
2006-09-26  0:08     ` Randy Brukardt
2006-09-21 22:12 ` Robert A Duff [this message]
2006-09-22  7:21 ` Dmitry A. Kazakov
2006-09-22 21:59 ` Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox