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-Thread: 103376,bf564bb3bcde0817 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Renaming versus initialisation References: <1qys7gc3aqky9$.1qtzg7epyh6kk$.dlg@40tude.net> <1pcj2c5hcop7$.1m6hudk4iekuz$.dlg@40tude.net> In-Reply-To: <1pcj2c5hcop7$.1m6hudk4iekuz$.dlg@40tude.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Wed, 28 Sep 2005 18:53:43 GMT NNTP-Posting-Host: 67.3.216.51 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.pas.earthlink.net 1127933623 67.3.216.51 (Wed, 28 Sep 2005 11:53:43 PDT) NNTP-Posting-Date: Wed, 28 Sep 2005 11:53:43 PDT Xref: g2news1.google.com comp.lang.ada:5248 Date: 2005-09-28T18:53:43+00:00 List-Id: Dmitry A. Kazakov wrote: > A compiler has right to optimize out the local object. I believe, it also > can optimize out initialization/finalization pair of the target in > declaration with initialization, so in the end it could be same, though it > isn't in GNAT. I think this analysis is correct. This is compiler dependent. The only language-required difference is that renames creates a constant and initialization can create a variable. -- Jeff Carter "You tiny-brained wipers of other people's bottoms!" Monty Python & the Holy Grail 18