31.12.2013 Views

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

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.

ISO COMPLIANCE<br />

In a FOR statement, thp type of the final value is not assignment<br />

compatible with the type of the control variable and the statement in<br />

the loop body is executed.<br />

Explanation:<br />

Detected at run time if checking was enabled during<br />

compilation. Assignment compatibility is not<br />

enforced if the statement in the loop body can<br />

never be executed.<br />

When an integer is being read from a text file, the ~igits read do not<br />

constitute a valid integer value. (Initial spaces and end-of-line<br />

markers are skipped.)<br />

Explanation:<br />

Detected at run time.<br />

When an integer is being read from a text file, the type of the<br />

read is not assignment compatible with the type of the variable.<br />

value<br />

Explanation:<br />

Detected at run time.<br />

When a real number is read from a text file, the digits read do not<br />

constitute a valid real number. (Initial spaces and end-of-line<br />

markers are skipped.)<br />

Explanation:<br />

Detected at run time.<br />

The value of the file buffer variable is undefined when a READ or<br />

READLN procedure is performed.<br />

Explanation:<br />

Not detected.<br />

A WRITE or WRITELN procedure specifies a field width in which the<br />

integers representing the total width and the number of fractional<br />

digits are less than 1.<br />

Explanation:<br />

Detected at run time.<br />

The bounds of an array passed to a conformant array parameter are<br />

outside the range specified by the conformant array's index type.<br />

Explanation:<br />

Not detected.<br />

E.4 EXCEPTIONS AND RESTRICTIONS<br />

<strong>PASCAL</strong>-<strong>20</strong> is not able to detect a number of violations of the ISO 7185<br />

standard. Violations that are not defined as errors are listed below.<br />

1. Statements threatening a FOR-loop control variable are not<br />

detected. A statement "threatens" a variable if it occurs<br />

within the FOR-loop or within a prior procedure, and if it is<br />

one of the following kinds of statements:<br />

• A READ or READLN statement containing the variable<br />

• An assignment statement with the variable to the left of<br />

the' :='<br />

• A procedure or function call with the variable as a<br />

formal VAR parameter<br />

E-8

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

Saved successfully!

Ooh no, something went wrong!