From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: exceptions and C functions (was Re: Ada -> C or C++ translator)
Date: Wed, 19 Jun 2002 01:44:11 GMT
Date: 2002-06-19T01:44:11+00:00 [thread overview]
Message-ID: <wcc1yb4xct0.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: dale-73D910.10214319062002@its-aw-news.its.rmit.edu.au
Dale Stanbrough <dale@cs.rmit.edu.au> writes:
> Robert A Duff wrote:
>
> > It supports the full language, including exceptions, tasking, etc (but
> > not the optional annexes). (It's not *easy* to translate Ada's
> > exceptions into C, but it is possible.)
>
> Can Ada exceptions cross C functions? E.g. if an Ada subprogram called
> a C function, which called an Ada subprogram which raised an exception,
> would the exception propagate across the C void?
Yes.
> If they don't (and pragma import of external language elements is
> basically incompatable with exceptions) then couldn't you just
> translate all Ada subprograms into equivalent C functions but with
> an extra exception paarameter?
Yes, but that wouldn't be very efficient. Also, part of the goal (not
the *main* goal) is to make the C code somewhat human-readable, so we
don't want to clutter things with extra implicitly-generated parameters
except in cases where we have to.
- Bob
next prev parent reply other threads:[~2002-06-19 1:44 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-17 12:26 Ada -> C or C++ translator David Rasmussen
2002-06-17 12:51 ` Martin Dowie
2002-06-17 12:59 ` David Rasmussen
2002-06-17 14:21 ` Larry Kilgallen
2002-06-17 14:19 ` David Rasmussen
2002-06-28 18:40 ` pontius
2002-06-29 1:47 ` tmoran
2002-07-01 14:30 ` pontius
2002-07-03 15:16 ` Robert I. Eachus
2002-07-13 22:55 ` David Thompson
2002-06-18 23:41 ` Robert A Duff
2002-06-19 0:21 ` exceptions and C functions (was Re: Ada -> C or C++ translator) Dale Stanbrough
2002-06-19 1:44 ` Robert A Duff [this message]
2002-06-19 14:32 ` Wes Groleau
2002-06-19 17:33 ` Robert A Duff
2002-06-19 17:58 ` Wes Groleau
2002-06-19 19:17 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox