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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,18a1da27baade824 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-15 19:34:29 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3BCB9CAB.851B1224@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: A copy question.... References: <9qedad$i1p$1@newstoo.ericsson.se> <9qehq6$t80$1@newstoo.ericsson.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 16 Oct 2001 02:34:28 GMT NNTP-Posting-Host: 158.252.128.20 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1003199668 158.252.128.20 (Mon, 15 Oct 2001 19:34:28 PDT) NNTP-Posting-Date: Mon, 15 Oct 2001 19:34:28 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Mon, 15 Oct 2001 19:30:48 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:14624 Date: 2001-10-16T02:34:28+00:00 List-Id: Dale Stanbrough wrote: > > > Array (0 .. 199) := Address_To_Int_Pointer (Address).all (0 .. 199); > > I hadn't thought of that! Certainly better notationally - probably > more efficient at the computer level as well. The .all is not required. Note also that using Address_To_Access_Conversions on an unconstrained array type is unlikely to give the desired results. The compiler has no way to determine the designated object's bounds. A constrained subtype is usually OK, but I think using an address clause to locate an object of the desired type and bounds is usually best. -- Jeff Carter "We call your door-opening request a silly thing." Monty Python & the Holy Grail