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>

In most cases there is no need for using GOTO statements. 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 JVM  (Last documentation update Jun 9, 2000)
Copyright © 1998 Mill Hill & Canterbury Corporation, Ltd. All rights reserved
Please send any comments or corrections to mhc@webcom.com