comp.lang.ada
 help / color / mirror / Atom feed
From: Laurent.Guerby@enst-bretagne.fr (Laurent Guerby)
Subject: Re: Free'ing extended types
Date: 1996/04/29
Date: 1996-04-29T00:00:00+00:00	[thread overview]
Message-ID: <4xrat6vlse.fsf@lagrange.enst-bretagne.fr> (raw)
In-Reply-To: dewar.830716817@schonberg


Robert Dewar writes
: Jonas said
  ^^^^^ 

   Jonas posted my email  ;-).
: "   So there's nothing that could lead  to an erroneous execution
: (note
: the X.all'access, the libc then does what's needed)."
:
: You seem to have the wrong idea of what erroneous is about. An erroneous
: execution is one whose semantics is not specified by the reference
: manual. You seem to think this means that it wlil blow up or do 
: something wrong. Not at all! It *may* blow up but it does not have to!
: 
: You can look at the execution of a particular impementation and conclude
: that a particular erroneous execution will have no ill effect on that
: implementation, but that does not mean that the exeution is not erroneous!

   I think you missed my answer, I was just saying that, in this case,
the "erroneous execution" was implementation dependant :
 
"  I *think*  that  it   (erroneous/not erroneous)  is  implementation
dependant, because   for each access   type  the Storage_Pool  (if not
user-specified) is  choosen "in an implementation-defined manner", see
13.11(17)."

   And I was pointing out the GNAT sources showing  (I'm not 100% sure
of my interpretation here) the use of one Storage_Pool (coded from the
C  library)  for    all  these types.  My   conclusion   was  that the
construction was not erroneous for the GNAT compiler.

   If another Ada  compiler use different  pools for the  types in the
example, as permitted by the  RM 13.11(17), then  the execution of the
construct is erroneous. Then, of course, it can just work, don't work,
crash your disk or nicely dies with Program_Error ;-).
 
-- 
--  Laurent Guerby, student at Telecom Bretagne (France), Team Ada.
--  "Use the Source, Luke. The Source will be with you, always (GPL)."
--  http://www-eleves.enst-bretagne.fr/~guerby/ (GATO Project).
--  Try GNAT, the GNU Ada 95 compiler (ftp://cs.nyu.edu/pub/gnat).




  parent reply	other threads:[~1996-04-29  0:00 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-28  0:00 Free'ing extended types Jonas Nygren
1996-04-28  0:00 ` Robert Dewar
1996-04-29  0:00   ` Laurent Guerby
1996-04-29  0:00     ` Robert A Duff
1996-04-29  0:00       ` Robert Dewar
1996-04-29  0:00   ` Jonas Nygren
1996-04-29  0:00     ` Robert A Duff
1996-04-29  0:00       ` Robert Dewar
1996-04-29  0:00         ` Robert A Duff
1996-04-29  0:00       ` Jonas Nygren
1996-05-20  0:00       ` Type conversion between access types (was: Free'ing extended types) Scott Leschke
1996-05-21  0:00         ` Robert A Duff
1996-05-22  0:00           ` Scott Leschke
1996-05-23  0:00             ` Robert A Duff
1996-05-23  0:00               ` progers
1996-05-24  0:00               ` Scott Leschke
1996-05-24  0:00                 ` Robert A Duff
1996-05-21  0:00         ` Dale Stanbrough
1996-05-21  0:00           ` Robert A Duff
1996-04-29  0:00   ` Laurent Guerby [this message]
1996-04-29  0:00     ` Free'ing extended types Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
1996-04-26  0:00 Jonas Nygren
1996-04-26  0:00 ` Laurent Guerby
1996-04-27  0:00   ` Jerry van Dijk
1996-04-28  0:00     ` Robert Dewar
1996-04-28  0:00   ` Jonas Nygren
replies disabled

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