comp.lang.ada
 help / color / mirror / Atom feed
From: cis.ohio-state.edu!pacific.mps.ohio-state.edu!math.ohio-state.edu!cs.utex
Subject: References in Ada exceptions
Date: 22 Jun 93 19:04:20 GMT	[thread overview]
Message-ID: <3176.2c26e734@atlas.nafb.trw.com> (raw)

[ The following is a request for information by a member of my department.
  Please reply direct to my email address, and I will forward. mg.]

I seem to remember that the following is dangerous:

	for i in 1..10 loop
	 begin
	   ...
	 exception
		...
		put(i);
	 end;
	end loop;

The state of the variable i cannot be guaranteed in an exception 
handler.  We had a problem like this on the DEC Ada compiler, and
I claim it was not a compiler bug, but a known limitation of Ada 
validated compilers.  Is there a formal ruling on this?  We require 
a hard reference.  Please reply by email to mgatlin@atlas.nafb.trw.com.
Thanks.

             reply	other threads:[~1993-06-22 19:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-06-22 19:04 cis.ohio-state.edu!pacific.mps.ohio-state.edu!math.ohio-state.edu!cs.utex [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-06-23  2:09 References in Ada exceptions pa.dec.com!e2big.mko.dec.com!jac.nuo.dec.com!digits.enet.dec.com!brett
1993-06-23 18:18 Brian Hanafee
1993-06-25 12:37 news.intercon.com!panix!netnews!schonberg!dewar
1993-06-25 20:43 Michael Feldman
replies disabled

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