comp.lang.ada
 help / color / mirror / Atom feed
From: mgk25@cl.cam.ac.uk (Markus Kuhn)
Subject: Re: locating exceptions (Ada vs. Java)
Date: 1999/03/20
Date: 1999-03-20T00:00:00+00:00	[thread overview]
Message-ID: <7cvu1s$14g$2@pegasus.csx.cam.ac.uk> (raw)
In-Reply-To: 7crpn2$kt6@drn.newsguy.com

In article <7crpn2$kt6@drn.newsguy.com>, bill <bill@newsguy.com> writes:
|> Java does all that out of the box. I found Ada exception tracing to be weak
|> compared to Java more powerfull exceptions. In Java, an exception is an object,
|> that contains very usefull info that one can use.

What does Java do in the case of out-of-memory exceptions in small
embedded systems (e.g., Java smartcard with 256 bytes RAM), where
there might not be space free for allocating an exception object?
Ada's exception mechanism sounds to me less comfortable, but more
foolproof here, as it does not rely on an operational heap. Also
remember that Ada was designed to allow using a heap-free subset
of the language for high-assurance applications (you do not want
to rely on malloc() in pacemakers and chemical process control
software).

Markus

-- 
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org,  WWW: <http://www.cl.cam.ac.uk/~mgk25/>




  parent reply	other threads:[~1999-03-20  0:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-14  0:00 A small Ada success story Steffen Huber
1999-03-17  0:00 ` Nick Roberts
1999-03-17  0:00 ` Tom Moran
1999-03-17  0:00   ` dennison
1999-03-18  0:00     ` Corey Ashford
1999-03-18  0:00       ` bill
1999-03-19  0:00         ` Fraser Wilson
1999-03-21  0:00           ` Ehud Lamm
1999-03-21  0:00             ` robert_dewar
1999-03-21  0:00               ` Tom Moran
1999-03-21  0:00                 ` robert_dewar
1999-03-22  0:00               ` Simon Wright
1999-03-19  0:00         ` Larry Kilgallen
1999-03-20  0:00         ` Markus Kuhn [this message]
1999-03-20  0:00           ` locating exceptions (Ada vs. Java) bill
1999-03-19  0:00       ` A small Ada success story dewar
1999-03-18  0:00     ` locating exceptions (was: Ada success story) Markus Kuhn
1999-03-19  0:00     ` A small Ada success story Michael F Brenner
1999-03-26  0:00       ` Steve Quinlan
replies disabled

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