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,8a6e6d9458ae6ddc X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Is this a bug? References: <5ad0dd8a.0409221652.6a69b336@posting.google.com> <5ad0dd8a.0409230035.337f9305@posting.google.com> <2rg6a1F1arg02U1@uni-berlin.de> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 24 Sep 2004 00:57:13 GMT NNTP-Posting-Host: 63.184.105.143 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1095987433 63.184.105.143 (Thu, 23 Sep 2004 17:57:13 PDT) NNTP-Posting-Date: Thu, 23 Sep 2004 17:57:13 PDT Xref: g2news1.google.com comp.lang.ada:4068 Date: 2004-09-24T00:57:13+00:00 List-Id: Stephen Leake wrote: > Brian May writes: > >>So another words, if I did the following: >> >>declare >> ... >> Current : Bucket_Access renames Current_Hook.all; >> >>begin >> ... >> Current_Hook := >> ... >>end; >> >>Then Current would still be the same object and value it use to be? > > Yes, you have it right. This is because Current is not a renaming of Current_Hook, which is what gets the new value. In the common case, in which the renamed object gets a new value, then the renaming also reflects the change. In the example above, if the assignment were to Current_Hook.all, then Current would also change. See ARM 8.5.1. -- Jeff Carter "C++: The power, elegance and simplicity of a hand grenade." Ole-Hjalmar Kristensen 90