comp.lang.ada
 help / color / mirror / Atom feed
From: Dale Stanbrough <dale@cs.rmit.edu.au>
Subject: exceptions and C functions (was Re: Ada -> C or C++ translator)
Date: Wed, 19 Jun 2002 10:21:43 +1000
Date: 2002-06-19T10:21:43+10:00	[thread overview]
Message-ID: <dale-73D910.10214319062002@its-aw-news.its.rmit.edu.au> (raw)
In-Reply-To: wcc7kkwxih4.fsf@shell01.TheWorld.com

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?


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?

Dale



  reply	other threads:[~2002-06-19  0:21 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   ` Dale Stanbrough [this message]
2002-06-19  1:44     ` exceptions and C functions (was Re: Ada -> C or C++ translator) Robert A Duff
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