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.

INTRINSIC (statement and attribute)<br />

Identifies an intrinsic procedure.<br />

Syntax<br />

The syntax of the type declaration statement with the INTRINSIC attribute is:<br />

type , attrib-list :: intrinsic-function-name-list<br />

type<br />

attrib-list<br />

Table 10-30<br />

PRIVATE PUBLIC<br />

intrinsic-function-name-list<br />

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

INTRINSIC (statement and attribute)<br />

is a valid type specification (INTEGER, REAL, LOGICAL, CHARACTER,<br />

TYPE(name), etc.).<br />

is a comma-separated list of attributes including INTRINSIC and optionally<br />

those attributes compatible with it, namely:<br />

is a comma-separated list of intrinsic-function-names. (Note that<br />

subroutine names cannot appear in type statements, so that intrinsic<br />

subroutine names can only be identified as such by use of the INTRINSIC<br />

statement, described below.)<br />

The syntax of the INTRINSIC statement is:<br />

INTRINSIC intrinsic-procedure-name-list<br />

where intrinsic-procedure-name-list is a comma-separated list of procedure names.<br />

Note that, like the EXTERNAL statement, the INTRINSIC statement does not have optional<br />

colons.<br />

Description<br />

The INTRINSIC statement and attribute identifies a specific or generic name as that of an<br />

intrinsic procedure, enabling it to be used as an actual argument. (Only a specific function<br />

name—or a generic name that is the same as the specific name—can be used as an actual<br />

argument; see “Procedure dummy argument” on page 142.) The INTRINSIC statement is<br />

necessary to inform the compiler that a name is intrinsic and is not the name of a variable.<br />

Chapter 10 359

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

Saved successfully!

Ooh no, something went wrong!