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, MSGID_RANDY 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: Robert Dewar Subject: Re: garbage collection Date: 1999/08/20 Message-ID: <7pjljj$o78$1@nnrp1.deja.com>#1/1 X-Deja-AN: 515093965 References: <7pe93j$ehg$1@dailyplanet.wam.umd.edu> <37BB3C67.64DC8383@mitre.org> X-Http-Proxy: 1.0 x38.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Fri Aug 20 13:35:48 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-08-20T00:00:00+00:00 List-Id: In article , Keith Thompson wrote: > BTW, in my experience most access types don't go out of scope > until > the program terminates, because they're declared in > library-level > packages. The automated reclamation can only take place if > the access > type is declared directly or indirectly within a subprogram or > a task > body (there may be other cases). True, but the one familiar case in which access types are declared locally is *precisely* when you want to take advantage of the compiler being able to free everything on scope exit. Of course you have to make sure that your compiler has this capability (GNAT does, I don't know about other Ada 95 compilers). Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.