(j3.2006) C12101 and C12102

John Reid John.Reid
Sat May 31 09:15:47 EDT 2014



Rafik Zurob wrote:
>> 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.
>
> Sigh.  I knew something was bound to go wrong when I consulted the
> 4-year-old draft.  The newer drafts don't have "or error-stop-stmt".

This is a difference between F2008 and its revision. WG5 decided last 
year to adopt this proposal (see N1975):

Number: UK-06
Title: Remove restriction on ERROR STOP
Status: For Consideration
Basic Functionality:
Remove restriction on error-stop
Rationale:
There is no standard way to issue a diagnostic message from a PURE
procedure.  A program should be able to execute an error termination
with a meaningful message.

Specification:
Remove the restriction on the appearance of an ERROR STOP statement
in a PURE procedure.

Syntax:
Delete 'or <<error-stop-stmt>>" in C1287 [313:8].

Cheers,

John.



More information about the J3 mailing list