comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Type safety on wikipedia
Date: Fri, 27 Jan 2006 17:24:33 -0600
Date: 2006-01-27T17:24:33-06:00	[thread overview]
Message-ID: <bJednavMXt4TN0feRVn-hg@megapath.net> (raw)
In-Reply-To: m23bj9h35k.fsf@grendel.local

"Simon Wright" <simon@pushface.org> wrote in message
news:m23bj9h35k.fsf@grendel.local...
...
> One point I had forgotten is that deallocation of a controlled object
> will finalize it -- LRM 13.11.2(9) -- so looking at it through a
> dangling pointer will be a Bad Thing even if GC has ensured that the
> mamory hasn't been re-used for something else.

Which reminds me of a significant issue: Ada 95 doesn't allow early (or
late) finalization of limited controlled objects. (Whether it allows early
finalization of nonlimited controlled objects is open to debate.) That means
that GC cannot collect objects containing limited controlled components
"early". But since a program written with GC in mind won't use
Unchecked_Deallocation, and the access types will likely be library level,
"early" and "anytime before completion of main" are the same. Since I think
most objects in a program ought to be controlled, that's a significant
problem.

We talked about this a few times, but never came near a consensus on how to
fix this, so Ada 2005 inherits the issue intact. I suppose if anyone was
seriously trying to use GC in their implementation, the priority level would
go up...

                                    Randy.





  reply	other threads:[~2006-01-27 23:24 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-26  7:28 Type safety on wikipedia Martin Krischik
2006-01-26 11:58 ` Alex R. Mosteo
2006-01-26 17:10   ` Martin Krischik
2006-01-26 20:24   ` Simon Wright
2006-01-26 20:43     ` Simon Wright
2006-01-27  6:58       ` Martin Krischik
2006-01-26 23:43   ` Bobby D. Bryant
2006-01-27 11:14     ` Alex R. Mosteo
2006-01-27 11:57       ` Martin Krischik
2006-01-27 15:30         ` Larry Kilgallen
2006-01-27 19:04           ` Martin Krischik
2006-01-27 22:06             ` Larry Kilgallen
2006-01-28  7:04               ` Martin Krischik
2006-01-29 21:48               ` Florian Weimer
2006-01-27 12:43       ` Georg Bauhaus
2006-01-26 13:49 ` Rod Chapman
2006-01-26 17:05   ` Martin Krischik
2006-01-26 18:14   ` Martin Krischik
2006-01-26 13:53 ` jimmaureenrogers
2006-01-26 15:18   ` Alex R. Mosteo
2006-01-26 16:49     ` Martin Krischik
2006-01-26 18:19       ` Alex R. Mosteo
2006-01-26 20:38         ` Simon Wright
2006-01-27 11:13           ` Alex R. Mosteo
2006-01-27 19:38             ` Simon Wright
2006-01-27 23:24               ` Randy Brukardt [this message]
2006-01-28  6:53               ` Martin Krischik
2006-01-27 18:58           ` Martin Krischik
2006-01-27 19:50             ` Simon Wright
2006-01-28  6:52               ` Martin Krischik
2006-01-26 19:22     ` Dmitry A. Kazakov
2006-01-26 19:07   ` Florian Weimer
2006-01-27  0:38     ` jimmaureenrogers
2006-01-27 18:54       ` Martin Krischik
2006-01-28  1:48         ` Jan Andres
2006-01-28  6:44           ` Martin Krischik
2006-01-31  2:13           ` Randy Brukardt
2006-02-06  5:02       ` Dave Thompson
2006-02-06  8:29         ` Larry Kilgallen
2006-01-27 11:34     ` Alex R. Mosteo
2006-01-27 12:18       ` Martin Krischik
2006-01-27 15:27       ` Florian Weimer
replies disabled

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