comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos" <david.c.hoos.sr@ada95.com>
To: <comp.lang.ada@ada.eu.org>
Subject: Re: dinamic object reclamation
Date: Wed, 19 Sep 2001 14:21:36 -0500
Date: 2001-09-19T14:21:36-05:00	[thread overview]
Message-ID: <mailman.1000927152.31927.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 9oantr$kc1$1@ns.omskelecom.ru


----- Original Message ----- 
From: "Anisimkov" <anisimkov@yahoo.com>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: Wednesday, September 19, 2001 2:28 PM
Subject: Re: dinamic object reclamation


> > Types derived from Ada.Finalization.Controlled can have their memory
> > automatically freed when execution leaves the scope in which it was
> > declared.
> 
> Anyway we have to call Ada.Unchecked_Deallocation
> inside of overloaded Finalize procedure
> for memory allocated inside of Initialize procedure.
> 
True. But controlled types need to be declared at library level, and
you don't have to remember to call Unchecked_Deallocation for
every instance of an object of the type.

> Where is a "Checked" deallocation ?

There is none.

> 
> 
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
> 




  reply	other threads:[~2001-09-19 19:21 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
2001-09-19 15:02 ` David C. Hoos
2001-09-19 19:28   ` Anisimkov
2001-09-19 19:21     ` David C. Hoos [this message]
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