comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon.j.wright@mac.com>
Subject: Re: Access to data indirection (newbie)
Date: Tue, 27 Nov 2007 22:20:12 +0000
Date: 2007-11-27T22:20:12+00:00	[thread overview]
Message-ID: <m263znjppf.fsf@mac.com> (raw)
In-Reply-To: 474bd14a$1@news.post.ch

Martin Krischik <krischik@users.sourceforge.net> writes:

> function HandlePointer (
>   Left : in Var)
>   return Win32.LONG is
> begin
>
> end HandlePointer;
>
> pragma Export (C, HandlePointer);
>
>
> The later might surprise you bout since the functions is declared
> "export c" "in Var" is passed as a pointer.

Not sure that's necessarily true! LRM95 B.3(68.1/1 & 69/1) mention
C_Pass_By_Copy-compatible -- probably safer to use (68) & declare it
as 'access Var' (which seems less surprising to me, the reader will
just think "oh, I see" and pass on, whereas the use of 'in Var' would
mean dashing off to the manual every time ...)



  parent reply	other threads:[~2007-11-27 22:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-27  7:10 Access to data indirection (newbie) axtens
2007-11-27  8:11 ` Martin Krischik
2007-11-27 17:32   ` Martin Krischik
2007-11-27 22:20   ` Simon Wright [this message]
2007-11-28  3:04     ` axtens
2007-11-28  3:45       ` axtens
replies disabled

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