comp.lang.ada
 help / color / mirror / Atom feed
From: "Pat Rogers" <progers@NOclasswideSPAM.com>
Subject: Re: Access to classwide type
Date: 2000/07/24
Date: 2000-07-24T00:00:00+00:00	[thread overview]
Message-ID: <9E0f5.239$SH6.22437@nnrp3.sbc.net> (raw)
In-Reply-To: 8li0m5$1i4$1@nnrp1.deja.com

<reason67@my-deja.com> wrote in message
news:8li0m5$1i4$1@nnrp1.deja.com...
> How in the heck does it do that? Does Ada.Unchecked_Deallocation
read
> the tag and do a `size on the data structure to determine the size
of
> the memory in heap to release? I am suprised by this. It is more
> implicit than I am used to in Ada.
> ---
> Jeffrey
>
> In article <xtPe5.19463$T5.28006@east2.usenetserver.com>,
>   "David Botton" <David@Botton.com> wrote:
>
> >    procedure Free_Object is
> >       new Ada.Unchecked_Deallocation (T'Class, T_Ptr);

Have a look at package System.Storage_Pools.  You'll note that the
primitives are abstract -- i.e., dispatching.


--
Pat Rogers                            Consulting and Training in:
http://www.classwide.com      Deadline Schedulability Analysis
progers@classwide.com        Software Fault Tolerance
(281)648-3165                       Real-Time/OO Languages






  parent reply	other threads:[~2000-07-24  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-23  0:00 Access to classwide type reason67
2000-07-24  0:00 ` David Botton
2000-07-24  0:00   ` reason67
2000-07-24  0:00     ` Pascal Obry
2000-07-24  0:00     ` Larry Kilgallen
2000-07-24  0:00       ` reason67
2000-07-24  0:00         ` Larry Kilgallen
2000-07-24  0:00         ` David Botton
2000-07-24  0:00     ` David Starner
2000-07-25  0:00       ` Laurent Guerby
2000-07-24  0:00     ` Pat Rogers [this message]
2000-07-25  0:00     ` Matthew J Heaney
replies disabled

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