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,de1c23707584fc3c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-22 09:36:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!sccrnsc04.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: virtual destructors References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc04 1051029271 12.234.13.56 (Tue, 22 Apr 2003 16:34:31 GMT) NNTP-Posting-Date: Tue, 22 Apr 2003 16:34:31 GMT Organization: AT&T Broadband Date: Tue, 22 Apr 2003 16:34:31 GMT Xref: archiver1.google.com comp.lang.ada:36350 Date: 2003-04-22T16:34:31+00:00 List-Id: > Another question: are there any advantages in using > Ada.Finalization for objects that will always be dynamically > allocated/deallocated over simply declaring a Dispose procedure, The compiler will make sure Finalize is called, whereas the programmer will sooner or later forget to call Dispose.