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,436e4ce138981b82 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-16 15:17:20 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: abstract sub programs overriding Date: Tue, 16 Mar 2004 17:16:57 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <105f2nvtaqmvjc5@corp.supernews.com> References: <1078776213.376775@master.nyc.kbcfp.com> <1078839257.157439@master.nyc.kbcfp.com> <5cmr40t76va200betf07b7bd6er05ltto9@4ax.com> <1078845298.702789@master.nyc.kbcfp.com> <0ipr40thtf86b520a0qdi003aj87gtuhd4@4ax.com> <1078849973.701176@master.nyc.kbcfp.com> <1078924150.268074@master.nyc.kbcfp.com> <1078934469.744922@master.nyc.kbcfp.com> <1078949096.760629@master.nyc.kbcfp.com> <1079013337.572283@master.nyc.kbcfp.com> <9_mdnfzBlfEC3M_d4p2dnA@comcast.com> <1079361579.900651@master.nyc.kbcfp.com> <1079466915.690786@master.nyc.kbcfp.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:6358 Date: 2004-03-16T17:16:57-06:00 List-Id: "Hyman Rosen" wrote in message news:1079466915.690786@master.nyc.kbcfp.com... > Robert I. Eachus wrote: > > Interesting thought. RM 7.6 (17, 17.1, and 21) permit an implementation > > to omit that Finalization, and requires that it be omitted in some > > cases. But you are right that a compiler could actually do that call in > > some circumstances. > > I don't think compilers can eliminate that Finalize call. 7.6/17 says, > without listing any exceptions, "The target of the assignment_statement > is then finalized." All the other permissions deal with the temporary > anonymous object that the canonical semantics create. Right. 7.6(21) allows lots of bogus 'optimizations', but this has been corrected by AI-147. That AI was a beast to get right, and I certainly don't want to have to go back there... Randy.