In a recent letter about coroutines, I wrote:
1. In languages that support coroutines, there are typically two additional
procedure invocation-related statements. In a Fortran extension, these
might be COCALL and CORETURN. COCALL acts like a CALL if the procedure
has never been called, or if it most recently returned by an ordinary
RETURN statement. If it returned by a CORETURN statement, COCALL
returns control to the procedure after the CORETURN statement. CALL
always sends control to the first statement of the procedure.
In the penultimate line, after "procedure" should be "at the statement".
I apologize for the confusion. The corrected paragraph should be
1. In languages that support coroutines, there are typically two additional
procedure invocation-related statements. In a Fortran extension, these
might be COCALL and CORETURN. COCALL acts like a CALL if the procedure
has never been called, or if it most recently returned by an ordinary
RETURN statement. If it returned by a CORETURN statement, COCALL
returns control to the procedure at the statement after the CORETURN
statement. CALL always sends control to the first statement of the
procedure.
Best regards,
Van Snyder
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|