comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: dinamic object reclamation
Date: 19 Sep 2001 20:51:08 +0100
Date: 2001-09-19T19:51:08+00:00	[thread overview]
Message-ID: <x7vwv2vdknn.fsf@smaug.pushface.org> (raw)
In-Reply-To: 9oangi$dp8$1@ns.omskelecom.ru

"Anisimkov" <anisimkov@yahoo.com> writes:

> > >But there is more then limit of memory usage
> > >becouse I wrote
> > >      for Block_Ptr'Storage_Size use Integer'Last;
> > >inside of procedure "act".
> > >
> > >and memory is not leaking now.
> >
> > >It looks like a trick.
> >
> > Well, it is. But it is clearly one that was placed into the language on
> purpose.
> > :-)
> 
> The one reasonable explanation i can imagine is
> that when we declearing
>       for Block_Ptr'Storage_Size use Integer'Last;
> GNAT creates storage_pool locally in the "act" procedure.
> and when we are leaving this procedure
> storage pool Finalized.

Exactly so.

> Could be nice to have standard way to declate
> access type with a local storage pool.

I rather think that this is it!



  parent reply	other threads:[~2001-09-19 19:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-19 14:27 dinamic object reclamation Anisimkov
2001-09-19 14:55 ` Ted Dennison
2001-09-19 17:44   ` Anisimkov
2001-09-19 17:15     ` Ted Dennison
2001-09-19 19:21       ` Anisimkov
2001-09-19 19:18         ` Ted Dennison
2001-09-19 19:51         ` Simon Wright [this message]
2001-09-19 15:02 ` David C. Hoos
2001-09-19 19:28   ` Anisimkov
2001-09-19 19:21     ` David C. Hoos
2001-09-19 21:47     ` Stephen Leake
2001-09-20  2:43 ` David Botton
2001-09-20  7:39   ` Larry Kilgallen
2001-09-20 13:21     ` Ted Dennison
replies disabled

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