Additional Interests
Go back down to statement 55 and make it return 31/Error.
Fig. 1.54
Now rewrite the behavior and everything should fall into place.
Fig. 1.55
See how our new statement 31 (the beginning of the 60's routine starts out
correctly with reference to the right Constant? Yaaayyyy! Except that we now have
a slight problem here. We need to change statement 30's returns back the way it
used to be — returning True/Error. Otherwise, the first routine will never
end.
Select statement 30 and change the returns to True/Error.
We're not quite done, though. The returns for statement #31 are wrong (remember
that we temporarily changed them to what is now showing?), but it should really
return the same as statement #5 does. If true, to the next line and if false,
to the beginning of the next routine.
However, we don't yet have a next routine. So let's flag this one for later
correction and we'll come back to it when we hav an actual next routine statement
# to jump to. Write that down!
Statement 31 - fix returns to
next line and next routine
Another little problem is that our second routine now has no ending. This can
cause some serious stuff to happen if we leave it like this. So …
We'll just copy the ending lines from the first routine and apply them to the
second routine. Select and duplicate statement 29. Your new statement will be
#56, all the way down at the bottom of the heap.
Fig. 1.56
|