Regularity
From Maze
(Difference between revisions)
(→"Go To Statement Considered Harmful") | (copy/paste error) | ||
| Line 69: | Line 69: | ||
<pre>? NEXT WITHOUT FOR ERROR IN 15</pre> | <pre>? NEXT WITHOUT FOR ERROR IN 15</pre> | ||
| − | Unlike the previous version where lines 5 and 10 were only implied to be a block, lines 1-15 are now explicitly a block of code defined as a FOR loop. NEXT relies on FOR, but since the block was re-entered on line 5 FOR never executes and NEXT is no longer valid. | + | Unlike the previous version where lines 5 and 10 were only implied to be a block, lines 1-15 are now explicitly a block of code defined as a FOR loop. NEXT relies on FOR, but since the block was re-entered on line 5 FOR never executes and NEXT is no longer valid. Using GOTO has short-circuited the other flow control structures that are critical to the language. |
(tk may be clearer with diagram?) | (tk may be clearer with diagram?) | ||
