comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert I. Eachus" <rieachus@comcast.net>
Subject: Re: Deallocation & Tagged Types
Date: Mon, 20 Oct 2003 01:13:51 GMT
Date: 2003-10-20T01:13:51+00:00	[thread overview]
Message-ID: <3F9336B1.6070703@comcast.net> (raw)
In-Reply-To: Wbzkb.5979$mM1.5916@newsfep4-winn.server.ntli.net

chris wrote:

> In the code they are Controlled and the Finalization routine does tidy 
> up, but it too got stuck at getting rid of V.Actual access variable. Now 
> it can go away too.  What is the benefit of making "destroy", "finalize"?

It will be called automagically when the container object goes away, if 
it is also controlled. You don't need to explicitly call it.  This is 
why garbage collectors for Ada are so useless.  If the ADT is created 
right, there is no garbage to collect later, and never any garbage for 
the user of the type to worry about.

-- 
                                                     Robert I. Eachus

"Quality is the Buddha. Quality is scientific reality. Quality is the 
goal of Art. It remains to work these concepts into a practical, 
down-to-earth context, and for this there is nothing more practical or 
down-to-earth than what I have been talking about all along...the repair 
of an old motorcycle."  -- from Zen and the Art of Motorcycle 
Maintenance by Robert Pirsig




  reply	other threads:[~2003-10-20  1:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-18 20:53 Deallocation & Tagged Types chris
2003-10-19 15:38 ` Robert I. Eachus
2003-10-19 16:53   ` chris
2003-10-20  1:08     ` Robert I. Eachus
2003-10-19 16:10 ` Dmitry A. Kazakov
2003-10-19 16:50   ` chris
2003-10-20  1:13     ` Robert I. Eachus [this message]
2003-10-20  1:43       ` Hyman Rosen
2003-10-26  8:11 ` Patrice Freydiere
replies disabled

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