From: Geoff Bull <geoff@research.canon.com.au>
Subject: Re: F9X twister & ADA (was: n-dim'l vectors)
Date: 2000/04/13
Date: 2000-04-13T02:58:59+00:00 [thread overview]
Message-ID: <38F53816.3D1F28A6@research.canon.com.au> (raw)
In-Reply-To: r62J4.930$PV.52530@bgtnsc06-news.ops.worldnet.att.net
James Giles wrote:
> >What about buffered io and user defined buffering?
>
> Like all parts of the program's state, those are all still present
> *in* the debugging file. You can inspect them there.
But I'd prefer it in a place defined by me!
I hate looking at core dumps and, thankfully, since using
Ada I *never* have to - same for Java. (when I was a C/Fortran I
lived in the debugger, I get the impression you are still stuck there )
In any embedded / real time context your proposal is just plain wrong.
Stop dead on exception would be difficult to implement if the
program is multithreaded or distributed across multiple machines?
> I think undocumented exceptions are clearly the ugliest way to
> accomplish this.
But there is nothing wrong with clearly documented exceptions?
> Any public property of a procedure which isn't
> explicitly declared - by direct requirement of the language
> definition - is probably a bad idea.
Are you saying this is ok:
(yes I know Start should return a boolean,
instead of raising an exception)
package Rocket_Motor is
procedure Start;
-- may raise Primary_Ignition_Failed
Primary_Ignition_Failed : exception;
end Rocket_Motor;
package body Rocket_Motor is
procedure Start is
begin
...
exception
when Constraint_Error =>
raise Primary_Ignition_Failed;
end Start;
end Rocket_Motor;
with Rocket_Motor;
procedure Launch is
begin
...
Rocket_Motor.Start;
...
exception
when Primary_Ignition_Failed =>
Fail_Safe;
end Launch;
?
Are you just objecting to raising (e.g.) Constraint_Error?
If so, it would be reasonably easy to write an asis tool
to enforce this policy.
> How bare is the hardware? If it's all
> *that* bare, it won't support I/O or exceptions either.
Bare = no OS.
Just the the language defined runtime + your program.
next prev parent reply other threads:[~2000-04-13 0:00 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <8cctts$ujr$1@nnrp1.deja.com>
[not found] ` <38EA0440.1ECBC158@ncep.noaa.gov>
2000-04-06 0:00 ` F9X twister & ADA (was: n-dim'l vectors) bv
2000-04-06 0:00 ` Richard Maine
2000-04-07 0:00 ` Brian Rogoff
2000-04-08 0:00 ` Dick Hendrickson
2000-04-08 0:00 ` Richard Maine
2000-04-09 0:00 ` Gary Scott
2000-04-09 0:00 ` Richard Maine
2000-04-09 0:00 ` Geoff Bull
2000-04-09 0:00 ` Dick Hendrickson
2000-04-09 0:00 ` Robert Dewar
2000-04-09 0:00 ` Gordon Sande
2000-04-09 0:00 ` James Giles
2000-04-10 0:00 ` tmoran
2000-04-15 0:00 ` Aidan Skinner
2000-04-17 0:00 ` Robert I. Eachus
2000-04-16 0:00 ` Ken Garlington
2000-04-12 0:00 ` Robert I. Eachus
2000-04-10 0:00 ` bv
2000-04-10 0:00 ` James Van Buskirk
2000-04-11 0:00 ` James Giles
2000-04-11 0:00 ` Dale Stanbrough
2000-04-11 0:00 ` James Giles
2000-04-12 0:00 ` Robert A Duff
2000-04-11 0:00 ` Geoff Bull
2000-04-11 0:00 ` James Giles
2000-04-11 0:00 ` Larry Kilgallen
2000-04-11 0:00 ` James Giles
2000-04-11 0:00 ` Larry Kilgallen
2000-04-12 0:00 ` Robert A Duff
2000-04-12 0:00 ` Geoff Bull
2000-04-12 0:00 ` James Giles
2000-04-12 0:00 ` Geoff Bull
2000-04-12 0:00 ` James Giles
2000-04-12 0:00 ` Geoff Bull
2000-04-12 0:00 ` James Giles
2000-04-13 0:00 ` Geoff Bull [this message]
2000-04-13 0:00 ` Debugging (was: F9X twister & ADA) James Giles
2000-04-13 0:00 ` F9X twister & ADA (was: n-dim'l vectors) James Giles
2000-04-14 0:00 ` Geoff Bull
2000-04-12 0:00 ` Marin D. Condic
2000-04-12 0:00 ` James Giles
2000-04-12 0:00 ` James Giles
2000-04-14 0:00 ` bv
2000-04-07 0:00 ` Paul van Delst
2000-04-10 0:00 ` bv
2000-04-07 0:00 ` Erik Edelmann
2000-04-07 0:00 ` Robert Dewar
2000-04-07 0:00 ` Erik Edelmann
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox