comp.lang.ada
 help / color / mirror / Atom feed
From: "Jesse Farmer" <tujuggernaut@gmx.net>
Subject: newbie q: access types getting address
Date: Wed, 13 Jun 2001 19:24:08 -0400
Date: 2001-06-13T19:24:08-04:00	[thread overview]
Message-ID: <tifu13m7rmgr7b@corp.supernews.com> (raw)

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





             reply	other threads:[~2001-06-13 23:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-13 23:24 Jesse Farmer [this message]
2001-06-13 23:56 ` newbie q: access types getting address James Rogers
2001-06-14  1:49 ` tmoran
2001-06-14 13:52 ` Jesse Farmer
replies disabled

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