comp.lang.ada
 help / color / mirror / Atom feed
From: "Steve Doiel" <nospam_steved@pacifier.com>
Subject: Re: Get a pointer to an array
Date: 1999/06/09
Date: 1999-06-09T00:00:00+00:00	[thread overview]
Message-ID: <375f1d8d.0@news.pacifier.com> (raw)
In-Reply-To: 37599022.C77585D@barak-online.net

>How do I create a normal array, then point an access type to it?
>I tried to convert the array 'address attribute to the array access
>type,
>but it didn't work. I think ADA arrays have some "meta data" before
>the data that contains the array bounds, and the 'address attribute
>gives the address of the data storage itself. So how can I make the
>access
>variable point to the array?
>
Is this what you're looking for?

procedure question is

type int_array is array(integer range <>) of integer;
type int_access is access all int_array;

a : aliased int_array := (1..10 => 0);
b : int_access;

begin
  b := a'access;
end question;







      parent reply	other threads:[~1999-06-09  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-05  0:00 Get a pointer to an array Elad Rosenheim
1999-06-06  0:00 ` David Botton
1999-06-06  0:00 ` Robert Dewar
1999-06-09  0:00 ` Steve Doiel [this message]
replies disabled

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