From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: C Interface question
Date: 1996/07/11
Date: 1996-07-11T00:00:00+00:00 [thread overview]
Message-ID: <dewar.837093265@schonberg> (raw)
In-Reply-To: 4s1q6c$2es@ionews.ionet.net
Kevin said
"I haven't tried it, but if a 'Address is the same size as an Access type, and ha
s the same value, then you may be able to
do the following:
function C_Function ( value : in Integer; Result : in System.Address ) return Sy
stem.Address;
Then, just use Unchecked conversion to convert the result to an Access type, and
access it that way."
This is non-portable, and really too low level. Using a named access type
is much cleaner, and cleaner still is just using an in out parameter
assuming your compiler follows the proper Ada 95 implementation advice.
prev parent reply other threads:[~1996-07-11 0:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-09 0:00 C Interface question Jerry van Dijk
1996-07-09 0:00 ` Robert Dewar
1996-07-10 0:00 ` Theodore E. Dennison
1996-07-11 0:00 ` Robert Dewar
1996-07-11 0:00 ` Jerry van Dijk
1996-07-11 0:00 ` Ken Garlington
1996-07-11 0:00 ` Robert Dewar
1996-07-09 0:00 ` Laurent Guerby
1996-07-11 0:00 ` Jerry van Dijk
1996-07-16 0:00 ` David Kirkland
1996-07-11 0:00 ` Kevin Krieser
1996-07-11 0:00 ` Robert Dewar [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox