comp.lang.ada
 help / color / mirror / Atom feed
From: WishList@2600.com (Technobabble)
Subject: Re: access type referencing nested array element
Date: 1998/09/19
Date: 1998-09-19T00:00:00+00:00	[thread overview]
Message-ID: <WishList-1809982135380001@a17.phoenix-14.goodnet.com> (raw)
In-Reply-To: dale-1909981308220001@dale.ppp.cs.rmit.edu.au

Greetings Dale,

> > Anyone know the syntax for referencing an array element (record) from an
> > access type pointing to an array of records ?
> 
> 
> 
>    XYZ (5).a -- implicit dereferencing
>    XYZ.all (5).a -- explicit dereferencing
> 
> 
> Dale

Ok, that means that if XYZ is a pointer to array of records, I can simply
use the pointer with the array index eg. (5) to access the 5th record. 
Now if I want to get the address of the 5th record would this be correct:

type xyz is access xyz_rec;

XYZ_POINTER := XYZ (5)'access;

????

thanks.
Richmond




  reply	other threads:[~1998-09-19  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-19  0:00 access type referencing nested array element Technobabble
1998-09-19  0:00 ` Dale Stanbrough
1998-09-19  0:00   ` Technobabble [this message]
1998-09-19  0:00     ` Tucker Taft
1998-09-19  0:00       ` dewarr
1998-09-19  0:00         ` Brian Rogoff
1998-09-20  0:00           ` Dale Stanbrough
1998-09-20  0:00             ` dewarr
1998-09-19  0:00       ` Tucker Taft
replies disabled

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