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,5653f0bd43045b85 X-Google-Attributes: gid103376,public From: Keith Thompson Subject: Re: garbage collection Date: 1999/08/18 Message-ID: #1/1 X-Deja-AN: 514343037 References: <7pe93j$ehg$1@dailyplanet.wam.umd.edu> <1ZCu3.301$26.56649@typhoon-sf.snfc21.pbi.net> X-Complaints-To: usenet@nusku.cts.com X-Trace: nusku.cts.com 935006422 25567 198.68.168.21 (18 Aug 1999 20:00:22 GMT) Organization: CTS Network Services NNTP-Posting-Date: 18 Aug 1999 20:00:22 GMT Newsgroups: comp.lang.ada Date: 1999-08-18T20:00:22+00:00 List-Id: tmoran@bix.com writes: > > If an implementation doesn't provide garbage collection then that > > storage is forever lost, is that correct? > > No. When the access type goes out of scope there is clearly no way > the storage can be on the target end of a pointer, so the > implementation should free that storage. Just to clarify, most implementations don't actually do this. Thus, under most Ada implementations, storage *will* be "forever lost" if you allocate it and don't explicitly deallocate it. (Well, "forever" usually means "until the program terminates".) -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> One of the great tragedies of ancient history is that Helen of Troy lived before the invention of the champagne bottle.