Contents | Prev | Next | Index


Goto Statements

A goto statement transfers program execution to the statement marked by the specified label within the same procedure, function or method block.

goto_stmt     ::= GOTO label
label ::= <integer>
::= <identifier>

Notice: This compiler has not yet implemented the GOTO statement because there is no GOTO available for the output Java language. It is recommended to use the structured flow of control statements such as for-statements, while-statements, repeat-statements or if-statements instead. Canterbury Pascal also offers the standard procedures BREAK, EXIT, and CONTINUE for further control of transfers of program execution.


Contents | Prev | Next | Index

Canterbury Pascal for Java  (Last documentation update Apr 19, 2000)
Copyright © 1998 Mill Hill & Canterbury Corporation, Ltd. All rights reserved
Please send any comments or corrections to mhc@webcom.com