comp.lang.ada
 help / color / mirror / Atom feed
From: Dale Stanbrough <dale@goanna.cs.rmit.EDU.AU>
Subject: Re: question re Ada equivalent of C function
Date: 1998/02/24
Date: 1998-02-24T00:00:00+00:00	[thread overview]
Message-ID: <6cubjv$1ut$1@goanna.cs.rmit.edu.au> (raw)
In-Reply-To: 34F1C9CD.5D5DCD3C@cl.cam.ac.uk


Robert Dewar writes:
"I would have thought it was clearly the case that it is more convenient to
 use pragma Import than a thickish binding. An aggressively thin binding might
 be more convenient (basically it would save you the trouble of writing the
 pragma Imports), but that is not what the standard provides."


I would agree that thin bindings are useful, especially as the common
C type map to common Ada types (or at least to those in interfaces.c).
I have found that providing a slightly thicker layer to accomodate Ada's
strings to be useful.

The use of callback data in Motif/TCL/Tk is also an area where something
better than "wafer thin" is also called for.

It's much easier to provide bindings and say (to students for example)
"just read the man page", than to have to create your own documentation.
Being _able_ to say "just read the man page" also helps with Ada's acceptance.

Dale




      reply	other threads:[~1998-02-24  0:00 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-21  0:00 question re Ada equivalent of C function David Fisher
1998-02-21  0:00 ` Robert Dewar
1998-02-21  0:00 ` Corey Ashford
1998-02-22  0:00   ` Nick Roberts
1998-02-21  0:00 ` Brian Rogoff
1998-02-21  0:00   ` Robert Dewar
1998-02-22  0:00     ` Brian Rogoff
1998-02-21  0:00   ` Jerry van Dijk
1998-02-21  0:00     ` David Fisher
1998-02-22  0:00       ` Simon Wright
1998-02-22  0:00         ` Simon Wright
1998-02-22  0:00       ` Jerry van Dijk
1998-02-22  0:00         ` Robert Dewar
1998-02-22  0:00           ` Andi Kleen
1998-02-22  0:00   ` Nick Roberts
1998-02-22  0:00     ` frc
1998-02-22  0:00 ` Larry Kilgallen
1998-02-22  0:00   ` Robert Dewar
1998-02-22  0:00   ` frc
1998-02-22  0:00     ` Linux/POSIX packages for GNAT Markus Kuhn
1998-02-22  0:00       ` Andi Kleen
1998-02-22  0:00         ` Markus Kuhn
1998-02-22  0:00           ` Robert Dewar
1998-02-22  0:00         ` Samuel Tardieu
1998-02-23  0:00           ` Nick Roberts
1998-02-23  0:00             ` Samuel Tardieu
1998-03-05  0:00             ` Testing exception handlers James M. Darlack
1998-02-22  0:00       ` Linux/POSIX packages for GNAT Robert Dewar
1998-02-23  0:00         ` Andi Kleen
1998-02-22  0:00           ` Robert Dewar
1998-02-23  0:00             ` Markus Kuhn
1998-02-23  0:00               ` Robert Dewar
1998-02-23  0:00         ` Markus Kuhn
1998-02-23  0:00           ` Robert Dewar
1998-02-23  0:00             ` Markus Kuhn
1998-02-24  0:00               ` Dale Stanbrough [this message]
replies disabled

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