From: Vinzent Hoefler <ada.rocks@jlfencey.com>
Subject: Re: C to Ada conversion
Date: Tue, 14 Jan 2003 15:12:14 -0500
Date: 2003-01-14T15:12:14-05:00 [thread overview]
Message-ID: <uuq10b.ar5.ln@jellix.jlfencey.com> (raw)
In-Reply-To: b01pi7$upj$1@news.online.de
Dr. Michael Paus wrote:
> if Det = 0.0 then -- A pointless test in Ada since an
> raise Constraint_Error; -- attempted divide by zero will raise
> end if; -- Constraint_Error anyway.
>
> This is NOT pointless because a piece of code should also
> work correctly if someone turns off the automatic checks in Ada.
Turning off checks does not mean that Constraint_Error will not be
raised (especially if you consider the divide-by-zero case).
Vinzent.
--
A general leading the State Department resembles a dragon commanding
ducks.
-- New York Times, Jan. 20, 1981
next prev parent reply other threads:[~2003-01-14 20:12 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-13 21:22 C to Ada conversion Mark
2003-01-13 23:14 ` tmoran
2003-01-14 1:27 ` Jeffrey Carter
2003-01-14 3:16 ` tmoran
2003-01-14 12:52 ` Mark
2003-01-14 19:35 ` John R. Strohm
2003-01-14 7:20 ` Martin Dowie
2003-01-14 8:49 ` tmoran
2003-01-14 22:45 ` Martin Dowie
2003-01-14 13:01 ` Mark
2003-01-14 17:18 ` Dr. Michael Paus
2003-01-14 18:10 ` tmoran
2003-01-14 18:24 ` tmoran
2003-01-14 19:48 ` Dr. Michael Paus
2003-01-14 20:12 ` Vinzent Hoefler [this message]
2003-01-14 21:55 ` tmoran
2003-01-16 21:17 ` Mark
2003-01-17 0:10 ` tmoran
2003-01-17 1:09 ` John R. Strohm
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox