comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: dinamic object reclamation
Date: Wed, 19 Sep 2001 19:18:58 GMT
Date: 2001-09-19T19:18:58+00:00	[thread overview]
Message-ID: <Cc6q7.6160$p77.22076@www.newsranger.com> (raw)
In-Reply-To: 9oangi$dp8$1@ns.omskelecom.ru

In article <9oangi$dp8$1@ns.omskelecom.ru>, Anisimkov says...
>
>If the Ada.Unchecked_Deallocation is Unchecked
>what deallocation is "Checked" ?

None, unless you make one yourself. The name graphicly emphasises the point that
this is an dangerous operation, and you could be hosing yourself if you aren't
careful (eg: Deallocating memory that you will need later, deallocating memory
that has already been deallocated, deallocating memory on the stack, etc). Ada
(unlike many lesser languages) worries about safety, and performing your own
manual deallocations is inherently unsafe.

As a matter of fact, the entire language is organized in a way to greatly reduce
your need for dynamic allocation. If you are an Ada newbie and find yourself
wanting to do dynamic allocation, you are probably doing something *wrong*.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



  reply	other threads:[~2001-09-19 19:18 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 [this message]
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
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