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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>FORTRAN</strong> Statements<br />

2.53 IMPLICIT Statement<br />

<strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> supports three forms of the IMPLICIT statement. The second and third<br />

forms are extensions to the <strong>FORTRAN</strong> <strong>77</strong> language.<br />

2.53.1 Standard IMPLICIT Statement<br />

<br />

IMPLICIT type (a [,a] ...) [,type (a [,a] ...)]...<br />

where:<br />

type<br />

a<br />

len<br />

is one of LOGICAL, INTEGER, REAL, DOUBLE PRECISION, COMPLEX or<br />

CHARACTER[*len].<br />

is either a single letter or a range of letters denoted by separating the first letter in the range from<br />

the last letter in the range by a minus sign.<br />

is the length of the character entities and is a positive unsigned integer constant or a positive<br />

integer constant expression enclosed in parentheses. If len is not specified, the length is 1.<br />

2.53.2 Extended IMPLICIT Statement<br />

IMPLICIT type[*len] (a [,a] ...)<br />

[,type[*len] (a [,a] ...)] ...<br />

where:<br />

type<br />

len<br />

is one of LOGICAL, INTEGER, REAL, DOUBLE PRECISION, COMPLEX or<br />

CHARACTER.<br />

is a positive unsigned integer constant or a positive integer constant expression enclosed in<br />

parentheses. If type is CHARACTER then (*) is also allowed. The possible values of len are<br />

as follows:<br />

1. If type is LOGICAL then len can be 1 or 4. The default is 4.<br />

2. If type is INTEGER then len can be 1, 2 or 4. The default is 4.<br />

3. If type is REAL then len can be 4 or 8. The default is 4.<br />

4. If type is DOUBLE PRECISION then len cannot be specified.<br />

5. If type is COMPLEX then len can be 8 or 16. The default is 8.<br />

6. If type is CHARACTER then len can be (*) or any positive integer.<br />

IMPLICIT Statement 89

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

Saved successfully!

Ooh no, something went wrong!