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,8c350c9f790688d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-11 14:10:57 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: renames and access Date: Wed, 11 Feb 2004 16:09:52 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <102la2t6t41vm7b@corp.supernews.com> References: 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:5459 Date: 2004-02-11T16:09:52-06:00 List-Id: "Francesco Bochicchio" wrote in message news:pan.2004.02.11.19.14.49.293492@virgilio.it... > Is this normal ??(I work with ObjectADA, did not try yet with GNAT) Yes. When you call "Reallocate_Memory", you're getting a new object, and assigning an access to that into Rec_Ptr. But a renames provides a new name for an object, in this case the original object that you renamed. > Is there any way to have the renames to automatically points to the new > memory? I can't think of one. You could rename the access object, but that hardly helps. > If this turns impossible, what would be an equivalent solution? At the > moment, my bet is to turn the renames into access. Any better idea? I don't have one, but perhaps someone else will. Randy.