comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos" <david.c.hoos.sr@ada95.com>
Subject: Re: C binding issue
Date: Sat, 10 May 2003 21:12:33 -0500
Date: 2003-05-10T21:12:33-05:00	[thread overview]
Message-ID: <yaiva.58480$8x5.57919@fe10.atl2.webusenet.com> (raw)
In-Reply-To: b9k0rv$bls$1@news.onet.pl


"kat-Zygfryd" <6667@wp.pl> wrote in message
news:b9k0rv$bls$1@news.onet.pl...
> Thanks, I just thought that access types and C pointers
> are incompatible.

Questions of this type are answered in the Ada Reference manual.

This particular case is covered in B.3 (68), viz.:

An Ada access T parameter, or an Ada out or in out parameter of an
elementary type T, is passed as a t* argument to a C function, where t is
the C type corresponding to the Ada type T. In the case of an elementary out
or in out parameter, a pointer to a temporary copy is used to preserve
by-copy semantics.
>
> Zygfryd
>
>
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>
>





  reply	other threads:[~2003-05-11  2:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-10 20:30 C binding issue kat-Zygfryd
2003-05-10 22:46 ` David Holm
2003-05-10 23:09   ` kat-Zygfryd
2003-05-11  2:12     ` David C. Hoos [this message]
2003-05-11  2:44       ` Jeffrey Carter
2003-05-11 15:02   ` Sergey Koshcheyev
2003-05-11 16:27     ` kat-Zygfryd
2003-05-11 19:01     ` David C. Hoos
2003-05-11 22:40 ` Antonio Vargas
replies disabled

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