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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d2e2f8b6578a7759 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-21 22:29:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-server.caltech.edu!attla2!ip.att.net!attbi_feed3!attbi.com!rwcrnsc54.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: some simple questions References: X-Newsreader: Tom's custom newsreader Message-ID: <8NE5a.209447$vm2.159485@rwcrnsc54> NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc54 1045895364 12.234.13.56 (Sat, 22 Feb 2003 06:29:24 GMT) NNTP-Posting-Date: Sat, 22 Feb 2003 06:29:24 GMT Organization: AT&T Broadband Date: Sat, 22 Feb 2003 06:29:24 GMT Xref: archiver1.google.com comp.lang.ada:34413 Date: 2003-02-22T06:29:24+00:00 List-Id: >given > type pint is access integer; > pi: pint:=new integer; It *should* be the case that anything of type "pint" is deallocated when you leave the scope of "type pint is access integer;", since clearly none of it could ever again be referenced. There are also Storage Pools if you want to be sure. In this case, of course, "pi" has the same lifetime as "pint" so why not just say pi : integer := 1234; > (I'm pretty sure Ada doesn't have Garabge Collector) I only know of one Ada implementation with a garbage collector; most don't. It's up to the compiler vendor.