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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,277e9347c1aa51a6,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-21 00:51:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc03.POSTED!not-for-mail From: Stapler Subject: Finalization and Declare blocks. Newsgroups: comp.lang.ada User-Agent: Pan/0.11.4 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: ALL Message-ID: NNTP-Posting-Host: 12.241.145.39 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc03 1040460712 12.241.145.39 (Sat, 21 Dec 2002 08:51:52 GMT) NNTP-Posting-Date: Sat, 21 Dec 2002 08:51:52 GMT Organization: AT&T Broadband Date: Sat, 21 Dec 2002 08:51:52 GMT Xref: archiver1.google.com comp.lang.ada:32143 Date: 2002-12-21T08:51:52+00:00 List-Id: I'm currently a little fuzzy on how Ada compilers handle allocation and de-allocation. If I declare an Abstract Data Type(a limited record for example) in the private part of a package, with a generic Item as one of it's elements, and then I "with" that package in another package, can I instantiate the data type without using "new" and also assume that the the Data Type will be automatically de-allocated at the end of the declare block? Or, within the declaration part of the declare block, could I derive the Abstract Data Type from Ada.Finalization.Controlled and assume the same?(That it will be automatically de-allocated at the end of the declare block.) I've been getting mixed messages, so I'm assuming it depends on who's compiler I'm using. Any pointers would be appreciated. Stapler