28.06.2013 Views

ISO Pascal reference manual

ISO Pascal reference manual

ISO Pascal reference manual

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.

BEGIN<br />

END.<br />

show; [parameter needed here}<br />

*ERROR 121 -- program parameter has not appeared in a<br />

VAR statement<br />

< name > was specified in the parameter list following the initial<br />

PROGRAM statement. Except in the case of INPUT and OUTPUT all<br />

such parameters must also appear in the outermost VAR statement so that<br />

they may be given a type.<br />

PROGRAM fail(output, data);<br />

(should be VAR data:text here}<br />

BEGIN<br />

readln(data); (data has not been defined}<br />

END.<br />

*ERROR 122 -- program parameter is restricted to being<br />

a file<br />

This implementation restricts the type of the objects which appear in the<br />

parameters following the initial PROGRAM statement to being files. An<br />

attempt to give them any other type will invoke this message.<br />

PROGRAM fail(thing);<br />

VAR thing : integer;<br />

BEGIN<br />

END.<br />

*ERROR 123 -- program parameter may not be a file of<br />

pointers<br />

This implementation of <strong>Pascal</strong> prohibits the use of files of pointers as<br />

program parameters.<br />

PROGRAM fail(ipoint);<br />

TYPE pi = linteger;<br />

VAR ipoint : FILE OF pi;<br />

BEGIN<br />

END.<br />

88 <strong>Pascal</strong> Issue 1

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

Saved successfully!

Ooh no, something went wrong!