comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Abnormal objects - how they can become normal again?
Date: 22 Dec 2005 10:57:36 -0500
Date: 2005-12-22T10:57:36-05:00	[thread overview]
Message-ID: <wccacetyvin.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 43AA84FD.7050601@mailinator.com

"Alex R. Mosteo" <devnull@mailinator.com> writes:

> Robert A Duff wrote:
> > (snip)
> > Another way to deal with abnormal (possibly controlled) objects is to
> > add a level of indirection.  I believe you can Unchecked_Deallocate an
> > abnormal object (not sure).  Assignment of access values does not
> > involve finalization.  So when you have a possibly-abnormal object, you
> > could simply throw it away and create a new one.
> 
> I guess you can indeed free abnormal controlled objects, but this will
> trigger finalization, and I think the OP wanted to avoid this (as this
> happens too when overwriting the abnormal object during asignation).

Good point.

So I guess the answer is, "never allow controlled objects to become
abnormal (if you wish to use them ever again)".  And as I said, abort
deferral can help you program this.  It's not easy.

- Bob



      reply	other threads:[~2005-12-22 15:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-21 13:01 Abnormal objects - how they can become normal again? Maciej Sobczak
2005-12-21 21:47 ` Robert A Duff
2005-12-22 10:50   ` Alex R. Mosteo
2005-12-22 15:57     ` Robert A Duff [this message]
replies disabled

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