(j3.2006) C12101 and C12102

Rafik Zurob rzurob
Fri May 30 18:51:27 EDT 2014


> From: Damian Rouson <sourcery at rouson.net>
> On May 30, 2014, at 3:08 PM, Van Snyder <Van.Snyder at jpl.nasa.gov> wrote:
...
> > There is no constraint against an ERROR STOP statement.  Is that
> > intentional or an oversight?
> > 
> > Was an ERROR STOP statement intended to be listed as an image control
> > statement?  (I hope not!)
> 
> 
> I also hope not.  I am very much looking forward to using ERROR STOP
> inside PURE procedures.

ERROR STOP is intended for abnormal termination while STOP is intended for 
normal termination.  So it makes sense (to me) for STOP but not ERROR STOP 
to be an image control statement.  There is no point in doing a SYNC 
MEMORY when an image dies abnormally.

As for ERROR STOP in pure, it's not allowed.  In F2008 (7th June 2010 
draft):
C1287 A pure subprogram shall not contain a stop-stmt or error-stop-stmt.

Regards

Rafik




More information about the J3 mailing list