comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Zoo question
Date: 1996/08/15
Date: 1996-08-15T00:00:00+00:00	[thread overview]
Message-ID: <Dw6MyA.47D@world.std.com> (raw)
In-Reply-To: 3212468B.2781E494@escmail.orl.mmc.com


In article <3212468B.2781E494@escmail.orl.mmc.com>,
Ted Dennison  <dennison@escmail.orl.mmc.com> wrote:
>   2 - No exception is ever raised (Constraint checking could be disabled 
>       for any number of reasons).

True, but one assumes that checks were not suppressed.  Otherwise,
*anyting* could happen.

>   3 - A CONSTRAINT_ERROR is raised OUTSIDE the block, upon the next attempt
>       to use the value of Animal_ID. (That's is what I meant by "within this
>       block" above).

I don't see how C_E could be raised outside the block.  11.6 allows the
compiler to play some games, but it does not allow the wrong handler to
handle an exception.  Nor does it allow an out-of-range value to be used
in any way that affects the external results of the program -- that is,
the compiler can re-order code to a certain extent, but it cannot put
the use of a value before a range check of that value if the normal
semantics requires otherwise.

11.6 was totally rewritten for Ada 95, but I don't think these
particular aspects changed.

- Bob




  reply	other threads:[~1996-08-15  0:00 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-12  0:00 Zoo question Ken Garlington
1996-08-12  0:00 ` Chris Morgan
1996-08-13  0:00   ` Ken Garlington
1996-08-13  0:00 ` Ted Dennison
1996-08-14  0:00   ` Ken Garlington
1996-08-14  0:00     ` Ted Dennison
1996-08-15  0:00       ` Robert A Duff [this message]
1996-08-15  0:00       ` Ken Garlington
1996-08-18  0:00         ` Robert Dewar
1996-08-19  0:00           ` Ted Dennison
1996-08-19  0:00             ` Mark A Biggar
1996-08-20  0:00             ` Robert Dewar
1996-08-15  0:00     ` Robert Dewar
1996-08-15  0:00       ` Bob Gilbert
1996-08-19  0:00         ` Ted Dennison
1996-08-16  0:00       ` Ken Garlington
1996-08-19  0:00       ` Ted Dennison
1996-08-15  0:00   ` Keith Thompson
1996-08-14  0:00 ` Paul Hussein
1996-08-14  0:00 ` Bob Gilbert
1996-08-14  0:00   ` Ted Dennison
1996-08-14  0:00     ` Bob Gilbert
1996-08-14  0:00       ` Ted Dennison
1996-08-14  0:00         ` Bob Gilbert
1996-08-14  0:00           ` Ken Garlington
1996-08-15  0:00             ` Robert A Duff
1996-08-16  0:00             ` Bob Gilbert
1996-08-19  0:00               ` Ted Dennison
1996-08-25  0:00                 ` Robert Dewar
1996-08-15  0:00           ` Robert I. Eachus
1996-08-15  0:00 ` John Herro
1996-08-16  0:00   ` Robert Dewar
1996-08-18  0:00     ` John Herro
1996-08-19  0:00       ` Ken Garlington
replies disabled

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