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.
PROGRAM fail(output);<br />
BEGIN<br />
END.<br />
PROCEDURE test;<br />
LABEL 10, 20;<br />
BEGIN<br />
10: writeln('label 10 identifies this statement');<br />
END; (no statement labelled 20: 1<br />
*ERROR 82 -- labels must be in the range 0..9999<br />
The <strong>Pascal</strong> standard states that labels are distinguished by their apparent<br />
numerical value and that this value must be in the range 0..9999.<br />
PROGRAM fail(output);<br />
LABEL 1, {ok}<br />
BEGIN<br />
10000; [wrong}<br />
1: writeln('ok');<br />
10000: writeln('bad');<br />
END.<br />
*ERROR 83 -- a label is required here<br />
In <strong>Pascal</strong> a label must be an integer constant in the range 0..9999. This<br />
message is issued when such a label is required but has not been found.<br />
PROGRAM fail(output);<br />
LABEL x; (x is not an integer constant}<br />
BEGIN<br />
GOTO x; (ditto}<br />
x: writeln('here'); [and ditto}<br />
END.<br />
*ERROR 84 -- this case label has already been used in this CASE<br />
statement<br />
This message is issued when a constant is used to label a statement for a<br />
second or subsequent time.<br />
Appendix A<br />
<strong>Pascal</strong> Issue I 73