ISO Pascal reference manual
ISO Pascal reference manual
ISO Pascal reference manual
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
*ERROR 69 -- this is not a pointer type<br />
This message is issued when NEW or DISPOSE are called with<br />
parameters which are not pointers.<br />
PROGRAM fail;<br />
VAR x:integer;<br />
BEGIN<br />
NEW(x); Ix isn't a pointer}<br />
END.<br />
*ERROR 70 -- the type of the expression following := is unsuitable<br />
for assigning to the variable to the left of :=<br />
Appendix A<br />
An assignment statement has been found which attempts to assign a value<br />
to a variable whose type is incompatible with the type of the value.<br />
PROGRAM fail;<br />
VAR j : integer;<br />
r : real;<br />
s : SET OF char;<br />
BEGIN<br />
j := r; (wrong}<br />
r := j; fright]<br />
s := 'c'; (wrong - 'c' is not a set}<br />
END.<br />
*ERROR 71 -- the type of result returns may be only<br />
a simple type or a pointer type<br />
Functions may only return results which are of a simple type (integer, real,<br />
char, Boolean, enumerated or a subrange) or a pointer type.<br />
PROGRAM fail;<br />
TYPE stype = SET OF char;<br />
VAR s : stype;<br />
FUNCTION f:stype; (wrong - sets aren't simple}<br />
BEGIN<br />
f :=<br />
END;<br />
<strong>Pascal</strong> Issue 1 69