comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Constraint checking of actuals passed to Attributes
Date: 2000/05/09
Date: 2000-05-09T00:00:00+00:00	[thread overview]
Message-ID: <8f9sjg$v3t$1@nnrp1.deja.com> (raw)
In-Reply-To: 8f9c45$be5$1@nnrp1.deja.com

In article <8f9c45$be5$1@nnrp1.deja.com>,
  Ted Dennison <dennison@telepath.com> wrote:
> Not having to have ever written a full Ada compiler, I'm not
> as aquainted with the nuances of the meaning of "abnormal" as
> it pertains to objects as many others here are.

The term "abnormal" has nothing to do with Ada compilers or any
other compilers, it is a term specifically coined for use in the
Ada RM, and fully defined therein.

> But my reading of the context of
> 13.9.1("Data Validity":3-7) implies more or less just that. It
> talks about objects that are "normal" having valid values for
> their type.

Nope, that's not careful enough reading. The whole point of
this section is to distinguish abnormal from other cases where
values may be outside the subtype range. An uninitialized
value is NOT abnorma. That's at the heart of the discussion
here, since referencing an abnormal object is for sure
erroneous:

8   It is erroneous to evaluate a primary that is a name
    denoting an abnormal object, or to evaluate a prefix that
    denotes an abnormal object.

But an uninitialized variable may well not have
a valid value.

Confused? I am not surprised. I find this whole attempt to
differentiate between these two states pretty ill-defined.

> So it would seem that any requirement to keep objects "normal"
> means that they cannot have garbage values placed in them.
> What am I missing?

See above!


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-05-09  0:00 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-05  0:00 Constraint checking of actuals passed to Attributes Matt Brennan
2000-05-05  0:00 ` Keith Thompson
2000-05-08  0:00 ` Tucker Taft
2000-05-09  0:00   ` Robert Dewar
2000-05-09  0:00     ` Ted Dennison
2000-05-09  0:00       ` Robert Dewar
2000-05-09  0:00         ` Ted Dennison
2000-05-09  0:00           ` Robert Dewar [this message]
2000-05-09  0:00             ` Ted Dennison
2000-05-09  0:00               ` Robert A Duff
2000-05-09  0:00     ` Robert A Duff
2000-05-09  0:00       ` Robert Dewar
2000-05-09  0:00         ` Robert A Duff
2000-05-09  0:00           ` Keith Thompson
2000-05-10  0:00             ` Robert A Duff
2000-05-14  0:00               ` Simon Wright
2000-05-17  0:00                 ` Robert A Duff
2000-05-12  0:00             ` Tucker Taft
2000-05-12  0:00               ` Ted Dennison
2000-05-12  0:00                 ` Robert A Duff
2000-05-12  0:00                   ` Ted Dennison
2000-05-16  0:00                     ` Robert A Duff
2000-05-16  0:00                       ` Ted Dennison
2000-05-17  0:00                       ` Robert Dewar
2000-05-10  0:00           ` Robert Dewar
2000-05-10  0:00             ` Robert A Duff
2000-05-15  0:00             ` Bill Greene
2000-05-10  0:00           ` David C. Hoos, Sr.
2000-05-22  0:00           ` Kenneth Almquist
2000-05-10  0:00   ` Matt Brennan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox