comp.lang.ada
 help / color / mirror / Atom feed
From: pa.dec.com!e2big.mko.dec.com!jac.nuo.dec.com!digits.enet.dec.com!brett@de cwrl.dec.com  (Bevin R. Brett)
Subject: Re: References in Ada exceptions
Date: 23 Jun 93 02:09:12 GMT	[thread overview]
Message-ID: <1993Jun23.011133.8132@jac.nuo.dec.com> (raw)

In article <3176.2c26e734@atlas.nafb.trw.com>, mgatlin@atlas.nafb.trw.com write
s...
>[ 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.

If a DEC Ada product did this, we would definitely regard it as a bug.
Exceptions within the begin..exception...end should not interrupt operations
such as the loop increment done outside the frame.

I have sent personal mail asking for help reproducing the problem.

/Bevin
DEC Ada team

             reply	other threads:[~1993-06-23  2:09 UTC|newest]

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

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