02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CALL<br />

Invokes a subroutine.<br />

Syntax<br />

CALL subr-name[([ subr-act-arg-spec-list ])]<br />

subr-name<br />

actual-argument-list<br />

actual-argument<br />

keyword<br />

Description<br />

is the name of the subroutine being invoked.<br />

is a comma-separated list of entities of the form:<br />

[keyword =]actual-argument<br />

is one of the following:<br />

expression<br />

variable<br />

procedure-name<br />

*label or &label<br />

<strong>HP</strong> <strong>Fortran</strong> statements<br />

CALL<br />

is one of the dummy argument names of the subroutine being invoked. If<br />

any keyword is specified, the subroutine interface must be explicit.<br />

A CALL statement is used to invoke (call) a subroutine, and to specify actual arguments, if<br />

any. Execution of the subroutine begins with the first executable statement. The following<br />

sequence of events occurs when a CALL statement executes:<br />

1. Actual arguments that are expressions are evaluated.<br />

2. The actual arguments are associated with the corresponding dummy arguments.<br />

3. Control transfers to the subroutine being called, and the subroutine executes.<br />

Chapter 10 257

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!