From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Question on interface Ada to C
Date: Wed, 26 May 2004 18:01:00 +0200
Date: 2004-05-26T18:01:00+02:00 [thread overview]
Message-ID: <1516083.1ZQvWAvWaJ@linux1.krischik.com> (raw)
In-Reply-To: ga59b0dlbhi0pfh2unacbq9c5c3f6h2250@4ax.com
James Alan Farrell wrote:
> Thank you for all the answers.
>
> Why is it in out? The quick answer is that is how it was done in the
> code I inherited.
>
> From what I understand, this was done to allow C to use a pointer
> argument. That does not match my understanding of how Ada works, but
> I am new to Interfaces.C and do not have a good understanding of how
> that works.
Your understanding is right of corse. "out" and "in out" both create call by
reference of convetion C is used. "in" on records is call by reference as
well. However, there is a convention C_Pass_By_Copy if you need fine
tuning.
With Regards
Martin
--
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com
next prev parent reply other threads:[~2004-05-26 16:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-25 21:00 Question on interface Ada to C James Alan Farrell
2004-05-25 21:30 ` Dale Stanbrough
2004-05-25 21:38 ` Simon Wright
2004-05-26 10:23 ` Dale Stanbrough
2004-05-26 13:05 ` James Alan Farrell
2004-05-26 16:01 ` Martin Krischik [this message]
2004-05-26 7:34 ` Martin Krischik
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox