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.

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

IMPLICIT<br />

The IMPLICIT NONE statement disables the default typing rules for all variables, arrays,<br />

named constants, function subprograms, ENTRY names, and statement functions (but not<br />

intrinsic functions). All such objects must be explicitly typed. The IMPLICIT NONE statement<br />

must be the only IMPLICIT statement in the scoping unit, and it must precede any PARAMETER<br />

statement. Types of intrinsic functions are not affected.<br />

You can also use the +implicit_none compile-line option to void the default typing rules. A<br />

program compiled with this option may include IMPLICIT statements, which the compiler will<br />

honor.<br />

Examples<br />

The following statement causes all variables and function names beginning with I, J, orK to<br />

be of type complex, and all data items beginning with A, B, orC to be of type integer:<br />

IMPLICIT COMPLEX (I, J, K), INTEGER (A-C)<br />

Related concepts<br />

For related information, see the following:<br />

338<br />

“Implicit typing” on page 31<br />

Chapter 10

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

Saved successfully!

Ooh no, something went wrong!