comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Rename Problem
Date: Tue, 06 Mar 2007 17:53:50 +0100
Date: 2007-03-06T17:50:45+01:00	[thread overview]
Message-ID: <1173200030.11841.82.camel@localhost> (raw)
In-Reply-To: <1173197839.773371.261080@q40g2000cwq.googlegroups.com>

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);






  reply	other threads:[~2007-03-06 16:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-06 16:17 Rename Problem Ant
2007-03-06 16:53 ` Georg Bauhaus [this message]
2007-03-06 21:50   ` Ant
2007-03-06 23:21     ` Adam Beneschan
2007-03-07  1:11     ` Jeffrey R. Carter
2007-03-07  3:47 ` Steve
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox