(j3.2006) C12101 and C12102

Bill Long longb
Fri May 30 18:35:47 EDT 2014


On May 30, 2014, at 5:08 PM, Van Snyder <Van.Snyder at jpl.nasa.gov> wrote:

> C12101 says a pure subprogram shall not contain a <stop-stmt>
> 
> C12102 says a pure subprogram shall not contain an image control
> statement.
> 
> Subclause 8.5 says a STOP statement is an image control statement.
> 
> Do we need to keep C12101?

It would appear not.

> 
> There is no constraint against an ERROR STOP statement.  Is that
> intentional or an oversight?

Intentional.  If you execute ERROR STOP, the whole program is torn down. You don?t really care about PURE semantics at that point. Allowing ERROR STOP provides an escape mechanism in the event of a situation from which there is no reasonable recovery.


> 
> Was an ERROR STOP statement intended to be listed as an image control
> statement?  (I hope not!)
> 

No.  It?s more of a image destroy statement.

Cheers,
Bill


> 
> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3

Bill Long                                                                       longb at cray.com
Fortran Technical Suport  &                                  voice:  651-605-9024
Bioinformatics Software Development                     fax:  651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101





More information about the J3 mailing list