From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5d3a1501d97dab65 X-Google-Attributes: gid103376,public From: geert@fozzie.sun3.iaf.nl (Geert Bosch) Subject: Re: C to Ada : a piece of code Date: 1996/09/13 Message-ID: <51a4gb$fd@fozzie.sun3.iaf.nl>#1/1 X-Deja-AN: 180358633 references: <3231732C.2781@virgoa4.in2p3.fr> <01bb9d61$537fe5e0$2b8371a5@dhoossr.iquest.com> <01bb9e40$d0312d80$348371a5@dhoossr.iquest.com> <514lpk$i0m@fozzie.sun3.iaf.nl> organization: La Calandre Infortunee newsgroups: comp.lang.ada Date: 1996-09-13T00:00:00+00:00 List-Id: 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