comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Lundin" <b.f.lundin@gmail.com>
Subject: Re: Problem implementing Iterators
Date: Tue, 27 Jan 2015 18:55:58 +0100
Date: 2015-01-27T18:55:58+01:00	[thread overview]
Message-ID: <ma8jee$1ci$1@dont-email.me> (raw)
In-Reply-To: <6d947a7f-7494-4dd7-96d9-0dad83589413@googlegroups.com>

On 2015-01-27 18:26, Laurent wrote:
> 
>> Try
>>      GL_String.Display (L1'Access);
> 
> Tried it, now getting:
> prefix of "Access" attribute must be aliased
> 

change
L1 : GL_String.List ;
to
L1 : aliased GL_String.List ;

'aliased' makes it allowed to use 'access on a variable.
Others can then see that it can be manipulated
via pointers.




if it still does not work,
try (if on gnat)

L1'unchecked_access
instead of L1'access



--
Björn


  reply	other threads:[~2015-01-27 17:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-27 13:54 Problem implementing Iterators Laurent
2015-01-27 16:24 ` AdaMagica
2015-01-27 17:26   ` Laurent
2015-01-27 17:55     ` Björn Lundin [this message]
2015-01-27 18:06       ` Laurent
2015-01-27 18:43         ` Björn Lundin
2015-01-27 20:58           ` Jeffrey Carter
2015-01-28 12:20             ` Björn Lundin
2015-01-28 16:42     ` AdaMagica
2015-01-28 20:14       ` Laurent
replies disabled

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