24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language 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>Language</strong> <strong>Reference</strong><br />

2.57 INTRINSIC Statement<br />

<br />

INTRINSIC f [,f] ...<br />

where:<br />

f<br />

is the name of an intrinsic function name.<br />

An INTRINSIC statement is used to identify a symbolic name as the name of an intrinsic function. It also<br />

allows a specific intrinsic function to be passed as an actual argument. The names of intrinsic functions for<br />

type conversion (INT, IFIX, HFIX, IDINT, FLOAT, DFLOAT, SNGL, REAL, DREAL, DBLE, CMPLX,<br />

DCMPLX, ICHAR, CHAR), lexical relationship (LGE, LGT, LLE, LLT), for choosing the largest or<br />

smallest value (MAX, MAX0, AMAX1, DMAX1, AMAX0, MAX1, MIN, MIN0, AMIN1, DMIN1,<br />

AMIN0, MIN1), as well as ALLOCATED, ISIZEOF and LOC, must not be used as actual arguments.<br />

A generic intrinsic function does not lose its generic property if it appears in an INTRINSIC statement.<br />

A name must only appear in an INTRINSIC statement once. A symbolic name must not appear in both an<br />

INTRINSIC and an EXTERNAL statement in a program unit.<br />

Example:<br />

INTRINSIC SIN<br />

.<br />

.<br />

.<br />

CALL SAM( SIN )<br />

In the previous example, the intrinsic function SIN was passed to the subroutine SAM. If the INTRINSIC<br />

statement were eliminated then the variable SIN would be passed to the subroutine SAM.<br />

102 INTRINSIC Statement

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

Saved successfully!

Ooh no, something went wrong!