comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: Ada to Motif bindings
Date: 2000/04/10
Date: 2000-04-10T00:00:00+00:00	[thread overview]
Message-ID: <8ct3pv$cnl$1@nnrp1.deja.com> (raw)
In-Reply-To: 38F17693.F32F2074@home.com

In article <38F17693.F32F2074@home.com>,
  Glen Cornell <the.cornells@home.com> wrote:
> > What features in Ada do you feel causes such a mismatch?
>
> I will point out that Xlib/Xt/Xm programming in Ada brings a new
source
> of potential errors:
>
> 1. Ada-c type conversions.

That's kind of puzzing. Most objects X deals with are "cookie"
objects, for which the internal structure is not to be mucked with.
So there's really no need to do type conversions when using *either*
language. Anyway, this is a binding issue. If the bindings have been
properly tested, you don't have any problem here.

> 2. Ada run-time conflicts with the Xt process model.

Ditto. If the bindings have been tested for this, then this is *not* an
issue for the bindings' users.

> 3. Ada threads and the single-threaded nature of X.

This is an issue with C as well. The only difference is that Ada
supports threads and C users have to go to the OS to get them. That just
means that C users tend to be less aware of this potential source of
problems than Ada users.

As an aside, I have seen X/Motif bindings that made the whole X/Motif
subsystem task-safe by wrapping a synchronizing task around all the
calls. This actually *removes* a potential source of errors that C X
coders have to deal with. :-)

--
T.E.D.

http://www.telepath.com/~dennison/Ted/TED.html


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-04-10  0:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-03  0:00 Ada to Motif bindings John Standard
2000-04-03  0:00 ` David Botton
2000-04-05  0:00 ` Glen Cornell
2000-04-05  0:00   ` Ted Dennison
2000-04-05  0:00     ` Marc CHEVRIER
2000-04-05  0:00       ` Ted Dennison
2000-04-06  0:00     ` Glen Cornell
2000-04-06  0:00       ` dale
2000-04-10  0:00         ` Glen Cornell
2000-04-10  0:00           ` Ted Dennison [this message]
2000-04-11  0:00             ` Simon Wright
2000-04-12  0:00               ` Jean-Pierre Rosen
2000-04-10  0:00           ` Dale Stanbrough
2000-04-10  0:00           ` Larry Kilgallen
2000-04-11  0:00             ` Simon Wright
2000-04-05  0:00   ` Larry Kilgallen
2000-04-05  0:00 ` Ada to XRT bindings John Standard
2000-04-15  0:00   ` james hopper
replies disabled

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