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,FREEMAIL_FROM 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!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 06 Mar 2007 21:45:37 -0600 From: "Steve" Newsgroups: comp.lang.ada References: <1173197839.773371.261080@q40g2000cwq.googlegroups.com> Subject: Re: Rename Problem Date: Tue, 6 Mar 2007 19:47:16 -0800 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original Message-ID: NNTP-Posting-Host: 24.20.111.245 X-Trace: sv3-O70eGxQwgdi83ewjgN4hvrBTAL/y5Wf5OfKUDOvp29q0UYToAUPEd4myxdufgYPpn2Vs4iRebhA1OzN!/oVPmH2MZ22D9KjUz3T/aRL4AzvGEkuojBot9xkMZSyjDtYoqxzeHMLVsWpCFmSAN+W3eNRLNivS!YCIegGVv/qhXcg== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Xref: g2news2.google.com comp.lang.ada:9737 Date: 2007-03-06T19:47:16-08:00 List-Id: "Ant" wrote in message news:1173197839.773371.261080@q40g2000cwq.googlegroups.com... >I am trying to rename an array component, but no luck. Is this > possible or am I just doing something wrong? > Here is an example of renaming an array component: procedure Rename_Example is type index is range 1 .. 10; type Signals_Record is record junk : Integer; end record; type Message_Array is array( index ) of Signals_Record; msg : Message_Array; msg1 : Signals_Record renames msg( 1 ); begin null; end Rename_Example; This is a complete example that compiles. It may or may not do what you were attempting to do, since that is unclear from your example. In the future please include a COMPLETE minimal example that may be compiled, or that you are attempting to compile. There are a lot of helpful people that follow this newsgroup that are more than happy to help. Regards, Steve (The Duck) > > TYPE message_array IS ARRAY (index) OF signals_record; > msg : message_array; > > PACKAGE m1 IS NEW transmit_message (id, type); > > msg (1) : signals RENAMES m1.signals_record; > > > Anthony >