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 />

1. Blanks are never used as zeroes and blanks embedded in constants are not allowed except in<br />

character constants.<br />

2. An input item of type real or double precision must have an input field suitable for F editing<br />

except that no fractional digits are assumed unless a decimal point is present in the field. Such a<br />

field will be called a numeric input field.<br />

3. An input item of type complex or double precision complex must consist of a left parenthesis<br />

followed by two numeric input fields separated by a comma and followed by a right parenthesis.<br />

The numeric input fields may be preceded or followed by blanks. The end of record can only<br />

appear between the first numeric field and the comma or between the comma and the second<br />

numeric field. Note that a null value must not be used as the real or imaginary part but may<br />

represent the entire complex constant.<br />

4. An input item of type logical must not include either a slash or a comma among the optional<br />

characters allowed in L editing.<br />

5. An input item of type character consists of a non-empty string of characters enclosed in<br />

apostrophes. Apostrophes in character constants are represented by two consecutive apostrophes<br />

without a blank or end of record separating them. Character constants may span records. If this<br />

is the case, the end of record does cause a blank to be inserted into the character constant. Note<br />

that a comma or slash in a character constant is not a value separator. A character input field is<br />

assigned to a character input item as though it were a character assignment.<br />

11.10.2 Namelist-Directed Output<br />

The form of the data items in an output record is suitable for input using a namelist-directed READ<br />

statement.<br />

1. Output records are written using the ampersand character (&), not the dollar sign ($), although<br />

the dollar sign is accepted as an alternative during input. That is, the output data is preceded by<br />

"&name" and is followed by "&END".<br />

2. All variable and array names specified in the NAMELIST list and their values are written out,<br />

each according to its type.<br />

3. Character data is enclosed in apostrophes.<br />

4. The fields for the data are made large enough to contain all the significant digits.<br />

5. The values of a complete array are written out in columns.<br />

242 Namelist-Directed Formatting (Extension)

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

Saved successfully!

Ooh no, something went wrong!