comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin D. Condic" <mcondic-nospam@quadruscorp.com>
Subject: Re: Nontrivial examples of C interface with Ada
Date: 2000/05/24
Date: 2000-05-24T15:02:55+00:00	[thread overview]
Message-ID: <392C1898.E41F1C@quadruscorp.com> (raw)
In-Reply-To: 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
> C things defined like
> 
The Win32ada binding to the Win32api is a major example of Ada bindings
to C stuff. It comes with the GNAT compiler and is probably available
from lots of other sources as well. (I think Aonix ships with it too,
but I have not looked at that product in a while.)

I personally find it a pain to use because of the large variety of types
for the same things, the constant use of error flags instead of
enumerated types and all the parameters are so C-ish that it doesn't fit
in with The Ada Way of thinking. (Some of this is just because the
Win32api is organically grown rather than engineered.) I'd prefer to see
a "thick" binding that simply hid all of the conversions, error flags,
etc. so that you had something that looked like Ada rather than
C-Written-In-Ada. But I suppose there is a need for the thin binding to
exist.

MDC
-- 
======================================================================
Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/
Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m
Visit my web site at:  http://www.mcondic.com/

"I'd trade it all for just a little more"
    --  Charles Montgomery Burns, [4F10]
======================================================================




  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 ` Terry Westley
2000-05-24  0:00 ` tmoran
2000-05-24  0:00 ` Ted Dennison
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 ` Marin D. Condic [this message]
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