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,334ea3c211604808 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.germany.com!news.belwue.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Rename Problem From: Georg Bauhaus In-Reply-To: <1173197839.773371.261080@q40g2000cwq.googlegroups.com> References: <1173197839.773371.261080@q40g2000cwq.googlegroups.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-ID: <1173200030.11841.82.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Date: Tue, 06 Mar 2007 17:53:50 +0100 Organization: Arcor NNTP-Posting-Date: 06 Mar 2007 17:50:45 CET NNTP-Posting-Host: ef22cd32.newsspool4.arcor-online.net X-Trace: DXC=T\LPIB_9_CKC4i^e1BZ=_H4IUK On Tue, 2007-03-06 at 08:17 -0800, Ant wrote: > I am trying to rename an array component, but no luck. Is this > possible or am I just doing something wrong? > > > TYPE message_array IS ARRAY (index) OF signals_record; > msg : message_array; > > PACKAGE m1 IS NEW transmit_message (id, type); ^^^^ "type" is an Ada keyword. What is transmit_message? > msg (1) : signals RENAMES m1.signals_record; ^^^^^^^^^^^^^^^^^ This is probably a type, if signals_record from above is a type. If you want to rename a component of msg, msg (1) say, then the renamed thing is an object. In this case it is of type signals_record. Not easy to tell without seeing some more source, preferably compilable. ... : signals_record RENAMES msg (1);