From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5e7d910855b4fd03 X-Google-Attributes: gid103376,public From: stt@houdini.camb.inmet.com (Tucker Taft) Subject: Re: access type referencing nested array element Date: 1998/09/19 Message-ID: #1/1 X-Deja-AN: 392711794 Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.camb.inmet.com References: Organization: Intermetrics, Inc. Newsgroups: comp.lang.ada Date: 1998-09-19T00:00:00+00:00 List-Id: Technobabble (WishList@2600.com) wrote: : 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; Yes, presuming the array is declared an an array of *aliased* components. E.g.: type array_of_rec is array(Positive range <>) of aliased xyz_rec; ^^^^^^^ This is required if you want to use 'Access. : ???? : thanks. : Richmond -- -Tucker Taft stt@inmet.com http://www.inmet.com/~stt/ Intermetrics, Inc. Burlington, MA USA An AverStar Company