comp.lang.ada
 help / color / mirror / Atom feed
From: "Steve" <nospam_steved94@comcast.net>
Subject: Re: Aliased
Date: Wed, 15 Jun 2005 20:15:12 -0700
Date: 2005-06-15T20:15:12-07:00	[thread overview]
Message-ID: <PcOdnUT7y5Tjcy3fRVn-uw@comcast.com> (raw)
In-Reply-To: 1118851601.345326.86640@g49g2000cwa.googlegroups.com

<nblanpain@hotmail.com> wrote in message 
news:1118851601.345326.86640@g49g2000cwa.googlegroups.com...
> Hello,
>
> I have a probleme with aliased variable :
>
> -- Specification
>
> package Test is
>
> ...
>
> private
>
> type T_Toto is ...;
> type A_Toto is acess all T_Toto;
>
> type T_Test is new T_Object with record
>   Tab : aliased T_Toto;
>   Ptr_Tab : A_Toto;
> end record;
>
> end Test;
>
> -- Body
>
> package body Test is
>
> ...
>
> procedure Initialize is
> begin
>   Ptr_Tab := Tab'Access;  -- illegal instruction
> end Initialize;
>
> ...
>
> end Test;
>
> Where is the problem and is there a solution to it?
>
> Thanks,
>

For a question like this please post the smallest set of sources that 
compile, or give the compilation error such that it may easily be 
reproduced.  Otherwise you are wasting everyones time (including your own).

It is easy to spot a number of possible errors in your sample code, many of 
which are likely just errors in composing your post.  One must "guess" at 
the real source of the problem.

Steve
(The Duck)





  parent reply	other threads:[~2005-06-16  3:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-15 16:06 Aliased nblanpain
2005-06-15 16:35 ` Aliased Martin Dowie
2005-06-15 18:56 ` Aliased nblanpain
2005-06-15 21:47   ` Aliased Martin Dowie
2005-06-16  3:15 ` Steve [this message]
2005-06-16 14:03   ` Aliased nblanpain
2005-06-16 19:56     ` Aliased Simon Wright
2005-06-17  7:01       ` Aliased nblanpain
2005-06-17  9:38         ` Aliased Larry Kilgallen
2005-06-19 19:44           ` Aliased nblanpain
2005-06-19 20:33             ` Aliased Jeffrey Carter
2005-06-20  9:34               ` Aliased nblanpain
2005-06-20 16:41                 ` Aliased Jeffrey Carter
2005-06-17  2:15     ` Aliased Jeffrey Carter
2005-06-17  7:02       ` Aliased nblanpain
2005-06-17  2:35     ` Aliased Steve
2005-06-17  7:52       ` Aliased Dmitry A. Kazakov
2005-06-17  4:38     ` Aliased Christoph Grein
2005-06-29 21:10     ` Aliased Robert A Duff
replies disabled

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