From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Renaming Fixed Point Mutiplicative operator in Ada 95
Date: 1998/05/21
Date: 1998-05-21T00:00:00+00:00 [thread overview]
Message-ID: <dewar.895785569@merv> (raw)
In-Reply-To: 01bd84c3$47215d60$440029a1@m00rq900
S Hutchesson said
<<Multiplication was just an example of the compilation problem - division
is the REAL killer - how do you cope with divide-by-zero exceptions in
critical system when all you are allowed is the catch-all exception
handler, (and run-time checks switched off)? Terminating with an exception
is not an option when you are 2 miles above the Atlantic! I would prefer
to know EXACTLY what is going on in as much of the object code produced
than leave it to the whim of the compiler.
>>
Now wait a moment, that makes no sense at all. All you need to do is:
begin
x := y / z;
exception
when Constraint_Error =>
... anythingf you please
end;
Furthermore, if you do want to override division, you can always do
x := Divide (y, z);
So while I agree this is annoying, the implication that it is other than
a minor annoyance is overblown!
next prev parent reply other threads:[~1998-05-21 0:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-19 0:00 Renaming Fixed Point Mutiplicative operator in Ada 95 Stuart Hutchesson
1998-05-19 0:00 ` Matthew Heaney
1998-05-20 0:00 ` Robert Dewar
[not found] ` <matthew_heaney-ya023680002005981908570001@news.ni.net>
1998-05-21 0:00 ` Robert Dewar
1998-05-22 0:00 ` Robert I. Eachus
1998-05-23 0:00 ` Robert Dewar
[not found] ` <01bd84c3$47215d60$440029a1@m00rq900>
1998-05-21 0:00 ` Robert Dewar [this message]
1998-05-21 0:00 ` Matthew Heaney
1998-05-21 0:00 ` Robert Dewar
1998-05-21 0:00 ` Simon Pilgrim
1998-05-21 0:00 ` Matthew Heaney
1998-05-22 0:00 ` Robert I. Eachus
1998-05-22 0:00 ` Rod Chapman
1998-05-22 0:00 ` John McCabe
1998-05-22 0:00 ` Stuart Hutchesson
1998-05-22 0:00 ` Matthew Heaney
1998-05-23 0:00 ` Robert Dewar
1998-05-21 0:00 ` John McCabe
1998-05-21 0:00 ` Robert Dewar
1998-05-21 0:00 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox