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 Sep 02, 2004)
Copyright © 1999-2004 J.Neuhoff - mhccorp.com  . All rights reserved.
Please send any comments or corrections to neuhoff@mhccorp.com