Contents

" Warning: Control variable must be local"

In Standard Pascal, there is a rule that the control variable of a for statement must either be local to the function or procedure that contains the for statement, or be global if the for statement is not contained in a function or procedure.

When all extensions are disabled (which can be done only with the command-line compiler), Irie Pascal displays an error message whenever this rule is violated. When all extensions are not disabled (which is always the case when using the IDE), Irie Pascal does enforce this rule, instead this warning message is displayed.

Contents