From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d1533431e7e9d2eb X-Google-Attributes: gid103376,public From: Scott Ingram Subject: Re: Nontrivial examples of C interface with Ada Date: 2000/05/24 Message-ID: <392C01F5.1B543D0C@silver.jhuapl.edu>#1/1 X-Deja-AN: 626786923 Content-Transfer-Encoding: 7bit References: <9ckmisoo8k0dh1gcajhdgqtqjqc3bjmb25@4ax.com> <392C1898.E41F1C@quadruscorp.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@houston.jhuapl.edu X-Trace: houston.jhuapl.edu 959185397 22798 128.244.80.107 (24 May 2000 16:23:17 GMT) Organization: Johns Hopkins University Applied Physics Lab, Laurel, MD, USA Mime-Version: 1.0 NNTP-Posting-Date: 24 May 2000 16:23:17 GMT Newsgroups: comp.lang.ada Date: 2000-05-24T16:23:17+00:00 List-Id: "Marin D. Condic" wrote: > > 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 > > (snip) > > 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 > -- ... The GTKAda binding is a very good example of a relatively thick binding to C code. -- Scott Ingram Sonar Processing and Analysis Laboratory Johns Hopkins University Applied Physics Laboratory