comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@spectre.mitre.org (Robert I. Eachus)
Subject: Re: Modulus and Remainder operations (Was Re: Help with a bit of C code)
Date: 13 Oct 94 16:56:29
Date: 1994-10-13T16:56:29+00:00	[thread overview]
Message-ID: <EACHUS.94Oct13165629@spectre.mitre.org> (raw)
In-Reply-To: sampson@nosc.mil's message of Thu, 13 Oct 1994 18:13:50 GMT

In article <1994Oct13.181350.10997@nosc.mil> sampson@nosc.mil (Charles H. Sampson) writes:

 >   This discussion has caused me to reread, once again, the definition of
 > "erroneous execution" in LRM 1.6(7).  The gist is that there are certain
 > Ada rules that might not be caught by a compiler/runtime and if one of
 > these rules is violated the effect of execution is unpredictable.  The
 > interesting point to me is that the effect of executing a program that
 > relies on a particular choice of a compiler-dependent feature is also un-
 > predictable.  Does anyone know why programs that rely on an implementation
 > of a compiler-dependent feature were not also classified as erroneous?

    Because it is the difference between undefined and not defined in
this standard.  The value of an (integer say)  variable which has
never been assigned to is undefined.  The value of INTEGER'SIZE is
implementation dependent.  You certainly don't want to declare that
any program which depends on INTEGER'SIZE is erroneous.

    Basically 1.1.1(16) says that the effect of executing a program
which depends on implementation dependent features is one from the set
of all possible legal effects.  (Knowing the implementation
characteristics can help you narrow that down. ;-)
--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...



  reply	other threads:[~1994-10-13 16:56 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-09-27 14:40 Modulus and Remainder operations (Was Re: Help with a bit of C code) David A. Cobb
1994-09-28 13:56 ` Robert Dewar
1994-09-29  9:04   ` Christopher Costello
1994-09-29 14:34   ` Norman H. Cohen
     [not found]   ` <1994Oct7.225248.6208@nosc.mil>
     [not found]     ` <1994Oct10.084630.19894@sei.cmu.edu>
     [not found]       ` <37bof4$ljl@gnat.cs.nyu.edu>
     [not found]         ` <37cigq$6e0@felix.seas.gwu.edu>
1994-10-11 14:42           ` Norman H. Cohen
     [not found]     ` <hbakerCxFK2p.4wp@netcom.com>
     [not found]       ` <1994Oct11.161048.1058@nosc.mil>
1994-10-11 20:06         ` Norman H. Cohen
1994-10-13  1:51           ` Henry G. Baker
1994-10-13  8:27             ` Magnus Kempe
1994-10-13 12:30               ` Robert Dewar
1994-10-14 15:45               ` Henry G. Baker
1994-10-14 22:11                 ` Robert Dewar
1994-10-15 17:35                 ` Tucker Taft
1994-10-13 10:38             ` Tucker Taft
1994-10-13 21:34             ` Norman H. Cohen
1994-10-14 15:39               ` Henry G. Baker
1994-10-14 22:56                 ` David Weller
1994-10-16  1:25                   ` Henry G. Baker
1994-10-13 18:13           ` Charles H. Sampson
1994-10-13 16:56             ` Robert I. Eachus [this message]
1994-10-13 20:59             ` Robert Dewar
1994-10-13 23:44             ` Bob 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