comp.lang.ada
 help / color / mirror / Atom feed
From: geert@fozzie.sun3.iaf.nl (Geert Bosch)
Subject: Re: C to Ada : a piece of code
Date: 1996/09/13
Date: 1996-09-13T00:00:00+00:00	[thread overview]
Message-ID: <51a4gb$fd@fozzie.sun3.iaf.nl> (raw)
In-Reply-To: dewar.842440545@schonberg


Robert Dewar (dewar@cs.nyu.edu) wrote about adding GC to GNAT:
`` Note that this statement is a bit broad, it should say "some users might
   depend in the future on being able add" .... I don't know of anyone
   doing this with GNAT today. ''

Fortunately I also don't know any GNAT compiler using virtual origins
today. ;-) There are good reasons to want automatic storage deallocation
with Ada-95, while I don't think there are good reasons to want an
Ada implementation to use virtual origins.

Dynamically allocated heap objects are typically used in
situations where the objects are global. This makes deciding when an
object should be deallocated error-prone. Any error a programmer
makes using Unchecked_Deallocation is likely to lead to erroneous
execution or memory leakage. 

The effects of these errors are hard to detect and when detected,
these errors are hard to debug and solve. Since modern garbage
collectors provide a good solution for these problems, it is
very desirable (sp?) to have one for GNAT.

Regards,
   Geert

PS. I refer to "modern GC" as opposed to the old and slow GC
    present in EMACS, for example.
-- 
E-Mail: geert@sun3.iaf.nl    
      ``I think there is a world market for maybe five computers.''
        Thomas Watson,  chairman of IBM, 1943





  reply	other threads:[~1996-09-13  0:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-07  0:00 C to Ada : a piece of code Grave Xavier
1996-09-07  0:00 ` Robert A Duff
1996-09-07  0:00 ` David C. Hoos, Sr.
1996-09-08  0:00 ` Jon S Anthony
1996-09-08  0:00   ` David C. Hoos, Sr.
1996-09-09  0:00     ` nasser
1996-09-09  0:00   ` Jon S Anthony
1996-09-09  0:00     ` David C. Hoos, Sr.
1996-09-09  0:00       ` Robert Dewar
1996-09-10  0:00         ` Geert Bosch
1996-09-11  0:00           ` Robert Dewar
1996-09-11  0:00             ` Jonas Nygren
1996-09-13  0:00             ` Geert Bosch
1996-09-14  0:00               ` Robert Dewar
1996-09-11  0:00           ` Robert Dewar
1996-09-13  0:00             ` Geert Bosch [this message]
1996-09-14  0:00               ` Robert Dewar
1996-09-09  0:00       ` John G. Volan
1996-09-10  0:00 ` Jon S Anthony
replies disabled

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