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.

test(r.x); (r.x is a case selector}<br />

END.<br />

*ERROR 127 -- PROGRAMs may not export procedures or functions<br />

A compilation unit that starts with PROGRAM is not permitted to define<br />

EXPORT PROCEDUREs or EXPORT FUNCTIONS, however, it may<br />

export variables. This is an extension to standard <strong>Pascal</strong>.<br />

PROGRAM fail;<br />

EXPORT PROCEDURE thing;<br />

BEGIN<br />

END;<br />

BEGIN<br />

END.<br />

thing;<br />

*ERROR 128 -- a procedure identifier is required here<br />

In the definition of a procedure the name of the procedure must<br />

immediately follow the word PROCEDURE.<br />

PROGRAM fail;<br />

PROCEDURE; BEGIN<br />

END;<br />

BEGIN<br />

END.<br />

*ERROR 129 -- a function identifier is required here<br />

In the definition of a function the name of the function must immediately<br />

follow the word FUNCTION.<br />

PROGRAM fail;<br />

FUNCTION:integer; BEGIN<br />

END;<br />

BEGIN<br />

END.<br />

90 <strong>Pascal</strong> Issue 1

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

Saved successfully!

Ooh no, something went wrong!