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.

*ERROR 101 -- parameters must be defined here<br />

Appendix A<br />

The declaration of a formal parameter is expected here. The common cause<br />

for this message is a spurious semicolon separating formal parameters.<br />

PROGRAM fail;<br />

PROCEDURE thing(x : integer; ; z : real);<br />

BEGIN [nothing here 1}<br />

END;<br />

BEGIN<br />

END.<br />

*ERROR 102 -- the parameters required by were defined in a previous<br />

FORWARD declaration and must not be repeated here<br />

When a procedure or function is declared as being FORWARD the<br />

parameters it requires must be specified at that point. These parameters<br />

must not be specified again when the actual definition of the procedure or<br />

function is made.<br />

PROGRAM fail;<br />

PROCEDURE thing(x : integer); FORWARD;<br />

PROCEDURE thing(x : integer); (credible, but wrong}<br />

BEGIN<br />

END;<br />

BEGIN<br />

END.<br />

*ERROR 103 -- a parameter in brackets is required here<br />

A procedure or function has been invoked with no parameters when its<br />

definition required at least one.<br />

PROGRAM fail;<br />

VAR x : integer;<br />

BEGIN<br />

x := ABS; [ABS needs one parameter}<br />

END.<br />

Pasca] Issue 1 81

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

Saved successfully!

Ooh no, something went wrong!