(j3.2006) STOP and PURE
John Reid
John.Reid
Tue Mar 28 10:54:38 EDT 2017
Bill Long wrote:
> C1598 says a PURE procedure shall not include an image control statement. STOP is now covered by that constraint.
Thanks for the explanation. I think a change is needed in the note. It
should mention all the image control statements, not just STOP. I will
see if I can get this into the UK vote.
Cheers,
John.
>
> Cheers,
> Bill
>
> On Mar 27, 2017, at 4:54 PM, John Reid <John.Reid at stfc.ac.uk> wrote:
>
>> In 12.7 of 14-007r1, we had this constraint:
>>
>> C12101 A pure subprogram shall not contain a stop-stmt.
>>
>> I can't see this in subsequent 007s. Was this a mistake? We still have,
>> in NOTE 15.48 of 17-007:
>>
>> "From the programmer?s point of view, these constraints can be
>> summarized as follows: ... nor shall a pure subprogram contain any
>> operation that could conceivably perform any external file input/output
>> or STOP operation."
>>
>> And in the Introduction of of 17-007, we have:
>>
>> "The ERROR STOP statement can appear in a pure subprogram."
>>
>> with nothing comparable about STOP.
>>
>> Cheers,
>>
>> John.
>> _______________________________________________
>> J3 mailing list
>> J3 at mailman.j3-fortran.org
>> http://mailman.j3-fortran.org/mailman/listinfo/j3
>
> Bill Long longb at cray.com
> Principal Engineer, Fortran Technical Support & voice: 651-605-9024
> Bioinformatics Software Development fax: 651-605-9143
> Cray Inc./ 2131 Lindau Lane/ Suite 1000/ Bloomington, MN 55425
>
>
> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3
>
More information about the J3
mailing list