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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.180.206.107 with SMTP id ln11mr6926083wic.7.1367534849460; Thu, 02 May 2013 15:47:29 -0700 (PDT) X-Received: by 10.152.5.37 with SMTP id p5mr110438lap.36.1367534849234; Thu, 02 May 2013 15:47:29 -0700 (PDT) Path: border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.85.212.216.MISMATCH!20no893997wis.1!news-out.google.com!hg5ni55401wib.1!nntp.google.com!17no885570wie.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 2 May 2013 15:47:28 -0700 (PDT) In-Reply-To: <143a8db3-c14b-4983-a481-4b998aea42af@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ NNTP-Posting-Host: 66.126.103.122 References: <143a8db3-c14b-4983-a481-4b998aea42af@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4b59af63-c630-4842-8144-bc3a4b51757f@googlegroups.com> Subject: Re: Accessing finalized values From: Adam Beneschan Injection-Date: Thu, 02 May 2013 22:47:29 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Original-Bytes: 2180 Xref: number.nntp.dca.giganews.com comp.lang.ada:181366 Date: 2013-05-02T15:47:28-07:00 List-Id: On Thursday, May 2, 2013 2:00:30 PM UTC-7, sbelm...@gmail.com wrote: > Hi, >=20 >=20 >=20 > Does anyone have any insight into what happens if a program uses the valu= e of an object after it has been finalized, but before it ceases to exist? Other than protected types, the only definition of what Finalize does is th= at a user-defined Finalize routine is called on the object and its subcompo= nents where it exists. So the effect of accessing it after Finalize is cal= led depends on what Finalize does. Besides that, "finalization" doesn't ha= ve any effect on objects or components that aren't controlled or protected,= so you should be able to expect that they'll be the same (if not modified = by your program) until the object ceases to exist. A protected operation on a protected object after it's been Finalized raise= Program_Error, I believe. -- Adam