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,FREEMAIL_FROM,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,35a7a7cda284a484,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-13 16:32:53 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!sn-xit-04!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Jesse Farmer" Newsgroups: comp.lang.ada Subject: newbie q: access types getting address Date: Wed, 13 Jun 2001 19:24:08 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:8702 Date: 2001-06-13T19:24:08-04:00 List-Id: Please pardon my ignorance, but I have not been able to find how to do this on the web. I want to get the address of a particular object that is getting passed into a function. How can I do this? Also, how can I get the address of some arbitrary element of an array? Essentially, I want the return value of the following c++ statements: return &Obj; and return &Array[5]; I understand that having pointers all over the place is somewhat discouraged in Ada, but this is for a Windows API call binding. Sorry if this is obvious and I have overlooked it. Any informative responses would be greatly appreciated. Thanks for your time + bandwidth. -Jesse Farmer University of Cincinnati