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 04:30:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.dacom.co.kr!intgwlon.nntp.telstra.net!news-server.bigpond.net.au!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: A copy question.... Organization: RMIT References: <9qedad$i1p$1@newstoo.ericsson.se> User-Agent: MT-NewsWatcher/3.1 (PPC) Message-ID: Date: Mon, 15 Oct 2001 11:30:06 GMT NNTP-Posting-Host: 144.132.82.11 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 1003145406 144.132.82.11 (Mon, 15 Oct 2001 21:30:06 EST) NNTP-Posting-Date: Mon, 15 Oct 2001 21:30:06 EST Xref: archiver1.google.com comp.lang.ada:14516 Date: 2001-10-15T11:30:06+00:00 List-Id: Dale Stanbrough wrote: > Convert the address to an access type using an instantiation of the > generic > > System.Address_To_Access_Conversions.To_Pointer > > and then dereference the pointer generated by the function... > > function Address_To_Int_Pointer is new > To_Pointer (Int_Pointer); > > ... > for i in Array'range loop > Array (i) := Address_To_Int_Pointer (Address).all; > Address := Address + Unsigned_32'Size/8; > -- i think there is a constant somewhere i should use instead of 8 > end loop; Silly me. I didn't check the code. System.Address_To_Access_Conversion is a generic package, not a package with a generic function. You'll need to instantiate it as... package To_Int_Pointers is new System.Address_To_Access_Conversion (Int_Pointer); and then you'll call the To_Pointer function in this package. Dale