comp.lang.ada
 help / color / mirror / Atom feed
From: "Hibou57 (Yannick Duchêne)" <yannick_duchene@yahoo.fr>
Subject: Re: Interfacing with C ; an ununsed fields dilemma
Date: Thu, 2 Jul 2009 05:01:18 -0700 (PDT)
Date: 2009-07-02T05:01:18-07:00	[thread overview]
Message-ID: <d8ed3a51-0762-4e1e-b5a9-13b727dfc76c@l31g2000yqb.googlegroups.com> (raw)
In-Reply-To: 5a416858-4a52-412d-8051-6dadb5eadb2c@t21g2000yqi.googlegroups.com

On 2 juil, 11:45, Maciej Sobczak <see.my.homep...@gmail.com> wrote:
> In some cases it is actually the only way to go, because in some C
> libraries the data structure layout can change from version to version
> and even though the proper layout is always defined in C header files,
> they are not *automatically* understood by Ada. You are not going to
> update your Ada wrapper every time, really.

For this single case, this API will not evolve anymore, as it has been
replaced by another, totaly different and incompatible with te two
previous versions... but which no body use.

The idea of a pre-wrapper before Ada is nice and clean (although at
the time, I prefer to not do this way, for some reasons)

> It is also the only way to interface with more elaborated C++
> libraries.
That's true, for C++, this would be mandatory (hope I will never have
to interface C++)


Finally, I think I will simply declare these unused fields in the
public part, in order to be able to give them an initialization value,
but I really do not like it to appears in the public part.




  reply	other threads:[~2009-07-02 12:01 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-02  6:20 Interfacing with C ; an ununsed fields dilemma Hibou57 (Yannick Duchêne)
2009-07-02  9:25 ` Martin
2009-07-02 18:14   ` reserved fields; was " tmoran
2009-07-02  9:45 ` Maciej Sobczak
2009-07-02 12:01   ` Hibou57 (Yannick Duchêne) [this message]
2009-07-02 12:09     ` Georg Bauhaus
2009-07-02 13:21       ` Hibou57 (Yannick Duchêne)
2009-07-02 15:50         ` Georg Bauhaus
2009-07-02 14:52     ` Maciej Sobczak
2009-07-02 23:21       ` Hibou57 (Yannick Duchêne)
2009-07-03  7:21         ` Maciej Sobczak
2009-07-02  9:51 ` Georg Bauhaus
2009-07-02 10:16   ` Martin
2009-07-02 11:48     ` Hibou57 (Yannick Duchêne)
2009-07-02 15:55 ` Robert A Duff
2009-07-04  0:03   ` Randy Brukardt
2009-07-03  6:59 ` anon
replies disabled

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