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,ed6a891101ff4e06 X-Google-Attributes: gid103376,public From: stt@houdini.camb.inmet.com (Tucker Taft) Subject: Re: Freeing Pointers to classwide types Date: 1998/10/01 Message-ID: #1/1 X-Deja-AN: 396775118 Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.camb.inmet.com References: <3613a5b1.186262@SantaClara01.news.InterNex.Net> Organization: Intermetrics, Inc. Newsgroups: comp.lang.ada Date: 1998-10-01T00:00:00+00:00 List-Id: Tom Moran (tmoran@bix.com) wrote: : ... : Let me rephrase the question: If an access type goes out of scope, : so the things it pointed to become inaccessible, is there any portable : way to prevent an eventual Storage_Error from multiple calls of the : block, without using Unchecked_Deallocation? Yes. Specify the 'Storage_Size associated with the access-type. The implementation is required to reclaim the storage for the access type when exiting its scope if a 'Storage_Size is specified (see RM95 13.11(18)). -- -Tucker Taft stt@inmet.com http://www.inmet.com/~stt/ Intermetrics, Inc. Burlington, MA USA An AverStar Company