comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@spectre.mitre.org (Robert I. Eachus)
Subject: Re: Flexible Strings (was Equality operator...)
Date: 1997/05/08
Date: 1997-05-08T00:00:00+00:00	[thread overview]
Message-ID: <EACHUS.97May8115935@spectre.mitre.org> (raw)
In-Reply-To: E9sAq2.HE8@world.std.com


In article <E9sAq2.HE8@world.std.com> bobduff@world.std.com (Robert A Duff) writes:

  > Of course, I admit that the C standard is easier to understand on this
  > particular point, if you're just a programmer trying to write programs,
  > and not a language lawyer.  The Ada standard goes out of its way to
  > raise questions of this nature, unfortunately.  Nonetheless, I claim
  > that the requirements of C and Ada are identical with respect to whether
  > free/Unch_Dealloc must/should reclaim storage.  They're just written in
  > a different style.

   The three reasons that the Ada standard doesn't always require
deallocation to do anything are finalization, storage pools, and
tasking.  It is easy to say, that Ada should require that storage is
always freed, but if you free a running task, or an object whose
finialization never completes, or an object in a storage pool with a
user supplied Deallocate procedure, the standard can't require
immediate deallocation.

   In all other cases, as I read 13.11.2(10) the wording is pretty
similar to the C standard.  And of course the three exceptions above
are not that likely to disturb anyone in real programs.  (Unless the
actual behavior of the Deallocate or Finalize routine involved is due
to a bug, not design.)


--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...




  parent reply	other threads:[~1997-05-08  0:00 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-30  0:00 Flexible Strings (was Equality operator...) W. Wesley Groleau (Wes)
1997-04-30  0:00 ` Matthew Heaney
1997-05-01  0:00   ` Robert Dewar
1997-05-02  0:00   ` Kevin Cline
1997-05-03  0:00     ` Robert Dewar
1997-05-04  0:00       ` Kevin Cline
1997-05-04  0:00         ` Robert Dewar
1997-05-06  0:00           ` Kaz Kylheku
1997-05-07  0:00             ` Kevin Cline
1997-05-07  0:00               ` Robert Dewar
1997-05-07  0:00               ` Jon S Anthony
1997-05-07  0:00               ` Matthew Heaney
1997-05-07  0:00                 ` Jon S Anthony
1997-05-07  0:00               ` Robert A Duff
1997-05-07  0:00             ` Robert Dewar
1997-05-07  0:00             ` Robert A Duff
1997-05-07  0:00               ` Robert Dewar
1997-05-08  0:00               ` Robert I. Eachus [this message]
1997-05-07  0:00             ` Robert Dewar
1997-05-09  0:00           ` Erik Magnuson
1997-05-10  0:00             ` Robert Dewar
1997-05-10  0:00               ` Matthew Heaney
1997-05-10  0:00             ` John G. Volan
1997-05-10  0:00               ` Robert Dewar
1997-05-10  0:00                 ` Matthew Heaney
1997-05-11  0:00                   ` Robert Dewar
1997-05-12  0:00               ` Erik Magnuson
1997-05-03  0:00     ` Jon S Anthony
     [not found] <199705010554.WAA24507@ni1.ni.net>
1997-05-01  0:00 ` W. Wesley Groleau (Wes)
1997-05-02  0:00   ` Robert Dewar
replies disabled

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