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.

Data types and data objects<br />

Intrinsic data types<br />

kind-selector<br />

28<br />

or +autodbl4 is used. Refer to the <strong>HP</strong> <strong>Fortran</strong> Programmer’s Guide for<br />

information about using these options to increase sizes. Refer to Chapter 10,<br />

“<strong>HP</strong> <strong>Fortran</strong> Statements” for information about each type-spec.<br />

If type-spec is present, it overrides the implicit-typing rules; see “Implicit<br />

typing” on page 31.<br />

As an <strong>HP</strong> extension to the Standard, type-spec can also take the form:<br />

type*length<br />

where type is an intrinsic type excluding BYTE, CHARACTER, DOUBLE<br />

COMPLEX, andDOUBLE PRECISION; andlength is the number of bytes of<br />

storage required, as shown in Table 3-1. Alternatively, *length may appear<br />

after the entity name. If the entity is an array with an array specification<br />

following it, *length may appear after the array specification. If *length<br />

appears with the entity name, it overrides the length specified by<br />

kind-selector.<br />

is<br />

scalar-int-init-expr<br />

char-selector<br />

attribute-spec<br />

entity-list<br />

([KIND=]scalar-int-init-expr)<br />

is a scalar integer initialization expression that must evaluate to one of the<br />

kind parameters available (see Table 3-1). For information about<br />

initialization expressions, see “Initialization expressions” on page 91.<br />

specifies the length and kind of the character variable, when type-spec is<br />

CHARACTER.<br />

is one or more of the attributes listed in Table 3-2. Some attributes are<br />

incompatible with others; for information about which attributes are<br />

compatible as well as full descriptions of all the attributes, see Chapter 10,<br />

“<strong>HP</strong> <strong>Fortran</strong> Statements.”<br />

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

var-name [(array-spec)] [*char-len] [ =<br />

init-expr]<br />

function-name[(array-spec )] [*char-len]<br />

Chapter 3

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

Saved successfully!

Ooh no, something went wrong!