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,3498dd887729ed19 X-Google-Attributes: gid103376,public From: eachus@spectre.mitre.org (Robert I. Eachus) Subject: Re: Garbage Collection in Ada Date: 1996/10/15 Message-ID: #1/1 X-Deja-AN: 189616866 references: <01bbb910$f1e73f60$829d6482@joy.ericsson.se> organization: The Mitre Corp., Bedford, MA. newsgroups: comp.lang.ada Date: 1996-10-15T00:00:00+00:00 List-Id: In article dewar@merv.cs.nyu.edu (Robert Dewar) writes: > I am a little dubious about mixing GC with full Ada 95 (e.g. GC and > unchecked conversion between integers and pointers are not friends), > but certainly GC with a slightly restricted Ada 95 semantics is perfectly > practical, and you can add me to the people who would like to see it (but > are not willing to sign a big check for it!) Adding support for a storage pool that supports GC would probably be EXTREMELY low cost. Doesn't GCC already use "fat" pointers under some circumstances? All that would be needed is a pragma that indicates that a certain storage pool uses fat pointers. There may be some other way to do it, but I have never needed to pay the price. Much easier, when I need it, is to pass "handles" not pointers, a sleight syntactic misfeature. So don't add it on my account. However, any Ada compiler that doesn't deallocate memory when you call Unchecked_Deallocation is junk. (Well, not really, which is why the permission is there. Any compiler that doesn't deallocation memory that was allocated with `new' when you call....) -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...