From: Ted Dennison <dennison@telepath.com>
Subject: Re: Nontrivial examples of C interface with Ada
Date: 2000/05/24
Date: 2000-05-24T00:00:00+00:00 [thread overview]
Message-ID: <8ghbqc$ram$1@nnrp1.deja.com> (raw)
In-Reply-To: 9ckmisoo8k0dh1gcajhdgqtqjqc3bjmb25@4ax.com
In article <9ckmisoo8k0dh1gcajhdgqtqjqc3bjmb25@4ax.com>,
gressett@iglobal.net wrote:
> Is there an example of a well-done, nontrivial interface to a C
> library readily available on the web? Examples of communication with
I have a semi-thick level binding to the CLIPS expert system shell on my
web site at
http://www.telepath.com/dennison/Ted/AdaClips/AdaClips.html
Its not a complete binding to CLIPS, but I did have to handle some
tricky stuff in there. So together with the CLIPS reference, it ought to
make for some good examples.
"Semi-thick" is my term for my own favorite style for bindings. A
"semi-thick" binding is one that abstracts away typical stupid C
artifacts like pointer interfaces, return error codes, and
null-termiated strings. That way the interface "feels" like Ada. But it
doesn't abstract things so much that the C docs for the routine can't be
used for the Ada bindings.
As to how "well-done" it is, I can't really give an impartial opinion.
But I've been writing Ada C bindings for over 11 years, so I at least
*ought* to know what I'm doing. :-)
--
T.E.D.
http://www.telepath.com/~dennison/Ted/TED.html
Sent via Deja.com http://www.deja.com/
Before you buy.
next prev parent reply other threads:[~2000-05-24 0:00 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-23 0:00 Nontrivial examples of C interface with Ada gressett
2000-05-24 0:00 ` David Emery
2000-05-24 0:00 ` Ted Dennison [this message]
2000-05-24 0:00 ` Marin D. Condic
2000-05-25 0:00 ` tmoran
2000-05-25 0:00 ` Ted Dennison
2000-05-25 0:00 ` tmoran
2000-05-25 0:00 ` Ted Dennison
2000-05-25 0:00 ` tmoran
2000-05-26 0:00 ` Julian Day
2000-05-26 0:00 ` Julian Day
2000-05-25 0:00 ` Geoff Bull
2000-05-25 0:00 ` tmoran
2000-05-26 0:00 ` Marin D. Condic
2000-05-27 0:00 ` tmoran
2000-05-27 0:00 ` Marin D. Condic
2000-05-28 0:00 ` tmoran
2000-05-28 0:00 ` Robert Dewar
2000-05-28 0:00 ` Marin D. Condic
2000-05-28 0:00 ` tmoran
2000-05-25 0:00 ` Ted Dennison
2000-05-25 0:00 ` tmoran
2000-05-29 0:00 ` Geoff Bull
2000-05-24 0:00 ` Terry Westley
2000-05-24 0:00 ` tmoran
2000-05-24 0:00 ` Marin D. Condic
2000-05-24 0:00 ` Scott Ingram
2000-05-24 0:00 ` Marin D. Condic
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox