comp.lang.ada
 help / color / mirror / Atom feed
From: mab@dst17.wdl.loral.com (Mark A Biggar)
Subject: Re: Zoo question
Date: 1996/08/19
Date: 1996-08-19T00:00:00+00:00	[thread overview]
Message-ID: <4va0b5$geo@wdl1.wdl.lmco.com> (raw)
In-Reply-To: 32185FC3.2781E494@escmail.orl.mmc.com


In article <32185FC3.2781E494@escmail.orl.mmc.com> Ted Dennison <dennison@escmail.orl.mmc.com> writes:
>Robert Dewar wrote:
>> Ken asks
>> "Assuming no supresses, would there be a case where #1 would not apply (no
>> exception on assignment)?"
>> No, the code you wrote MUST give an exception on the assignment. Any
>> speculation to the contrary is simply misinformed, any compiler that
>> does not raise the exception (assuming checks are turned on) is simply
>> broken, and it is a bug.
>That does seem to jibe with 5.2(3-4) in my Ada 83 LRM. However, I could
>have sworn I saw a rather long discussion here a year ago about compiler
>optimizations moving constraint checks out of loops. I suppose this is
>still possible, as long as there aren't any declare blocks (or is it?).

Even a declare block doesn't prevent that optimization, but if that
declare block has a exception handler you can't move any code that
could possibly raise the exception outside the block.  Exceptions must be
caughts by the inner most hadler for the exception that encloses the 
code that raises the exception.  Adn, yes this does restorct the use of
code moving optimizations, but anyother rule would cause choas.

--
Mark Biggar
mab@wdl.lmco.com






  reply	other threads:[~1996-08-19  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       ` Ken Garlington
1996-08-18  0:00         ` Robert Dewar
1996-08-19  0:00           ` Ted Dennison
1996-08-19  0:00             ` Mark A Biggar [this message]
1996-08-20  0:00             ` Robert Dewar
1996-08-15  0:00       ` Robert A Duff
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