comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Why no constraint error?
Date: 1997/03/22
Date: 1997-03-22T00:00:00+00:00	[thread overview]
Message-ID: <dewar.859021939@merv> (raw)
In-Reply-To: E7EHzv.MHq@world.std.com


<<Unfortunately, 13.9.1(11) is a loophole you could drive a truck through.
The assumption is that compilers will be reasonable.  There's some AARM
discussion on this point.  But this para is irrelevant to your example.>>

I was always amazed that Bob could seriously suggest that all assignment
statements must do range checks. In some cases, especially with arrays
where you can never prove that elements are uninitialized in practice,
you can slow things down by a large factor with this decision.

Furthermore, in practice putting these range checks in has almost no
effect (that's an empirical observation from experimentation). So what
is being suggested here makes no sense to me, and seems completely
*unreasonable*.

For GNAT, part of "will be reasonable" is "will be reasonably efficient",
so I agree with your assumption, and so does GNAT!





  parent reply	other threads:[~1997-03-22  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-20  0:00 Why no constraint error? Samuel Mize
1997-03-20  0:00 ` Samuel Mize
1997-03-21  0:00   ` Robert A Duff
1997-03-22  0:00     ` Tucker Taft
1997-03-22  0:00       ` Robert A Duff
1997-03-24  0:00         ` Tucker Taft
1997-03-24  0:00       ` Samuel A. Mize
1997-03-24  0:00         ` Robert Dewar
1997-03-24  0:00         ` Robert A Duff
1997-03-24  0:00           ` Robert Dewar
1997-03-22  0:00     ` Robert Dewar [this message]
1997-03-22  0:00       ` Robert A 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