comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Interfacing Ada and C (exceptions) for safety-related systems.
Date: 1998/07/23
Date: 1998-07-23T00:00:00+00:00	[thread overview]
Message-ID: <dewar.901221183@merv> (raw)
In-Reply-To: 35B71908.74CD212E@amst.co.at

<<After first tests calling C from Ada (using ObjectAda for
Realtime ETS and Microsoft Visual C++) we found,
that errors in C (which are not totally impossible in our code,
like zero division, range checks, pointer problems)
>>


What on earth is a "range check" in C. There are no such, so of course
these non-existent checks do not cause Ada exceptions!

On the other hand, it certainly is nice if something like a zero divide
would raise and propagate the corresaponding exception if it corresponds
to a hardware trap. Of course if it does NOT correspond to a hardware
trap (e.g. numeric overflow on most machines), then of course C does not
check it, and of course there is no exception to catch.






  reply	other threads:[~1998-07-23  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-23  0:00 Interfacing Ada and C (exceptions) for safety-related systems Dave White
1998-07-23  0:00 ` Robert Dewar [this message]
     [not found] ` <6p9e16$j5c$1@mulga.cs.mu.OZ.AU>
1998-07-24  0:00   ` Clayton Weaver
replies disabled

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