02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IMPLICIT<br />

Changes or voids default typing rules.<br />

Syntax<br />

The IMPLICIT statement can take either of the following forms:<br />

First form:<br />

IMPLICIT type (range-list)[, type (range-list) ,]...<br />

Second form:<br />

IMPLICIT NONE<br />

type is the data type to be associated with the corresponding letters in<br />

range-list.<br />

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

IMPLICIT<br />

range-list is a comma-separated list of letters or ranges of letters (for example, A-Z or<br />

I-N) to be associated with type. Writing a range of letters has the same<br />

effect as writing a list of single letters.<br />

Description<br />

The IMPLICIT statement can be used either to change or void the default typing rules within<br />

the program unit in which it appears, depending on which of the two forms the statement<br />

takes.<br />

First form<br />

This form of the IMPLICIT statement specifies type as the data type for all variables, arrays,<br />

named constants, function subprograms, ENTRY names in function subprograms, and<br />

statement functions that begin with any letter in range-list and that are not explicitly given<br />

atype.<br />

Within the specification statements of a program unit, IMPLICIT statements must precede all<br />

other specification statements, except possibly the DATA and PARAMETER statements.<br />

Thesamelettermustnotappearasasingleletterorbeincludedinarangeofletters,more<br />

than once in all of the IMPLICIT statements in a scoping unit.<br />

For information on how the IMPLICIT and PARAMETER statements interact, refer to<br />

“PARAMETER (statement and attribute)” on page 386.<br />

Second form<br />

Chapter 10 337

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

Saved successfully!

Ooh no, something went wrong!