comp.lang.ada
 help / color / mirror / Atom feed
From: MEANS@MACOMW.ARPA (Bob Means)
Subject: forwarded mail
Date: Tue, 9-Jun-87 19:45:38 EDT	[thread overview]
Date: Tue Jun  9 19:45:38 1987
Message-ID: <550280738.0.MEANS@MACOMW.ARPA> (raw)



Date: Wed May 27 14:20:56 1987
Version: VM version 2.27 -SNUFFL-
From: John Bollenbacher TPII 120 x2220 <JBOLLENBACHE@SNUFFL>
To: means@TORREY
Subject: Ada bulletin board

Bob,

Do you think you could post this mail on the Arpanet Ada BB for me?  Thanks.

===================

	Dale Worley at Cullinet Software writes: 
	
	
 Is the following program required to raise CONSTRAINT_ERROR (or
whatever)? 	
 	
 procedure y is 	
   type x is range 0..100; 	
   a : x := 100; 	
 begin 	
   a := a + 1;     	
 end y; 	   

  I think the answer lies in LRM 11.6(5):
   "A predefined operation need not be invoked at all if its only possible
    effect is to propogate a predefined exception..."

  Since the only other possible effect of this program is to set the value
of 'a' (which is then never used), the compiler can optimize the whole program
away.  Moral: beware of making conclusions about exceptions based on simple
programs.

-John Bollenbacher (M/A-COM Government Systems)

-------
-------

-------

             reply	other threads:[~1987-06-09 23:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1987-06-09 23:45 Bob Means [this message]
1987-06-10  6:52 ` forwarded mail Ada bulletin board amiram%virgo
replies disabled

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