From: Geoff Bull <geoff@research.canon.com.au>
Subject: Re: Nontrivial examples of C interface with Ada
Date: 2000/05/29
Date: 2000-05-29T01:06:51+00:00 [thread overview]
Message-ID: <3931C2D9.36F9480A@research.canon.com.au> (raw)
In-Reply-To: 8gjjeb$eng$1@nnrp1.deja.com
Ted Dennison wrote:
> But somtimes you can go the other way. I often turn what was basicly
> a "procedure with return error code" interface into a "function that
> raises exception on error" interface.
>
> Its funny how a mid-thick binding with exceptions can make a C library
> routine easier to use in Ada than C. :-)
There are good examples of this in my binding to JNI.
In C you have to do a test to see if a Java exception has been thrown.
The Ada binding just raises an exception.
next prev parent reply other threads:[~2000-05-29 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 ` Marin D. Condic
2000-05-24 0:00 ` Scott Ingram
2000-05-24 0:00 ` Marin D. Condic
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 ` Ted Dennison
2000-05-25 0:00 ` tmoran
2000-05-29 0:00 ` Geoff Bull [this message]
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 ` Marin D. Condic
2000-05-28 0:00 ` tmoran
2000-05-28 0:00 ` Robert Dewar
2000-05-24 0:00 ` David Emery
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox