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-Thread: 103376,c68551ab190372c8,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!feed.news.tiscali.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: matthias_k Newsgroups: comp.lang.ada Subject: Ada memory management? Date: Thu, 07 Oct 2004 11:39:57 +0200 Organization: T-Online Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1097141989 01 14831 UO4mXPD1YQ0xOrx 041007 09:39:49 X-Complaints-To: usenet-abuse@t-online.de X-ID: XjJjtkZ18ehx9zpqK3LFrFQdqxSZgpQlv1tyva89QsO8clbq-OZhg+ User-Agent: Mozilla Thunderbird 0.8 (X11/20040918) X-Accept-Language: en-us, en Xref: g2news1.google.com comp.lang.ada:4857 Date: 2004-10-07T11:39:57+02:00 List-Id: Hey there, since there is an allocator 'new' in Ada, I was wondering if there is a 'delete' too. I've heard there is a special technique called Storage Pool in Ada to write own memory managers, but what is the default deallocator? Consider this code: procedure Does_This_Leak is type Int_Ptr is access Integer; ptr: Int_Ptr; begin ptr := new Integer; end Does_This_Leak; Will this procedure leak? Or does Ada somehow deal on its own with the allocation. Thanks in advance, Matthias