comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Interfacing to C library...
Date: Sat, 2 Nov 2002 16:10:44 GMT
Date: 2002-11-02T16:10:44+00:00	[thread overview]
Message-ID: <wcck7jwuf3v.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: pan.2002.11.02.05.14.57.594236@jps-nospam.net

"Eric G. Miller" <egm2@jps-nospam.net> writes:

> Seems Ada always passes records via C pointers. So, the above
> doesn't work. Surely, there's a way!  Or do I need a C wrapper for
> my Ada wrapper ;-(

This is a bug in the Ada 95 language, which, I must admit, is partly my
fault.  It has since been "fixed" by adding pragma C_Pass_By_Copy.
See AI-131.  This AI is approved by WG9, and is part of Corrigendum 1.

Perhaps "fixed" is an overstatement.  The bug has been patched with a
kludgy pragma.

- Bob



  parent reply	other threads:[~2002-11-02 16:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-01 15:38 Interfacing to C library Eric G. Miller
2002-11-01 17:11 ` Robert A Duff
2002-11-01 17:40   ` tmoran
2002-11-02  5:10     ` Eric G. Miller
2002-11-02  6:02       ` tmoran
2002-11-02 16:10       ` Robert A Duff [this message]
2002-11-02 18:35         ` Eric G. Miller
2002-11-02 18:55           ` Robert A Duff
2002-11-02 23:59             ` Eric G. Miller
2002-11-03 16:47               ` Robert A Duff
2002-11-03 18:55                 ` Eric G. Miller
2002-11-03  9:28             ` Dale Stanbrough
replies disabled

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