comp.lang.ada
 help / color / mirror / Atom feed
From: "chris.danx" <spamoff.danx@ntlworld.com>
Subject: Re: thick? thin? binding
Date: Wed, 19 Jun 2002 20:27:35 +0100
Date: 2002-06-19T20:27:35+01:00	[thread overview]
Message-ID: <7%4Q8.6131$ZP1.1160926@news11-gui.server.ntli.net> (raw)
In-Reply-To: aeqjst$96ip3$1@ID-100557.news.dfncis.de


"Immanuel Scholz" <news@kutzsche.net> wrote in message
news:aeqjst$96ip3$1@ID-100557.news.dfncis.de...
> Hi,
>
> I read through 1 and a half Ada book and still doesnt catch what "thick"
or
> "thin" binding mean...

A binding is an interface to external code (something that's not written in
Ada and/or which you have to import to use) like win32, OpenGL or a data
structures library written in fortran or C.

A "thin" binding is a 'one to one mapping to Ada of whatever interface the
foreign program provides'(1).  The Win32 binding for GNAT being a good
example, it's just a one to one mapping to the win32 api and makes you pity
C programmers :(

A "think" binding is more abstract, providing a nice 'Ada-like view of the
foreign program'(2).  They're the lovely bindings like GtkAda and Gwindows
which use object orientation, tasking, or anything else found in Ada to
provide a nice, neat interface for ppl to use (you almost don't need to know
what the underlying program looks like).


Chris

(1) & (2) Wheeler, Ada 95: The Lovelace Tutorial
          p174, section 16.3





  parent reply	other threads:[~2002-06-19 19:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-19 18:53 thick? thin? binding Immanuel Scholz
2002-06-19 19:22 ` tmoran
2002-06-19 19:27 ` Stephen Leake
2002-06-19 19:50   ` Immanuel Scholz
2002-06-19 20:25     ` tmoran
2002-06-19 19:27 ` chris.danx [this message]
2002-06-19 19:28 ` Stephen Leake
2002-06-20 14:12 ` Ted Dennison
2002-06-21  1:29   ` David Emery
2002-06-26  0:23     ` tmoran
replies disabled

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