I have confirmed that this bug exists in both FMSLogo and
UCBLogo. A similar bug exists for FOREACH. There are
probably other template-based iterators that have the same
bug, so it is worth sweeping Logolib for other instances of
this bug.
I don't see how this bug could cause a practical problem,
but I agree that the behavior is unexpected and could be
corrected. I will probably do so after I have written a
good set of regression tests for FOR.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you run (this long for loop):
for [i 1 10] [wait 60]
and press Edall while this is running you will see something like this:
Make "for.final 10
Make "for.initial 3
Make "for.instr [wait 60]
Make "for.step 1
Make "for.tester [:for.initial > :for.final]
Make "for.values [i 1 10]
Make "for.var "i
Make "i 3
This is unexpected. I think there are two solutions:
1. (preferred) Unable Edall while running.
2. bury for (and other) variables
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=109252
Thanks for reporting this.
I have confirmed that this bug exists in both FMSLogo and
UCBLogo. A similar bug exists for FOREACH. There are
probably other template-based iterators that have the same
bug, so it is worth sweeping Logolib for other instances of
this bug.
I don't see how this bug could cause a practical problem,
but I agree that the behavior is unexpected and could be
corrected. I will probably do so after I have written a
good set of regression tests for FOR.
Logged In: YES
user_id=1407063
Originator: YES
Practical problem:
If you run (this long for loop):
for [i 1 10] [wait 60]
and press Edall while this is running you will see something like this:
Make "for.final 10
Make "for.initial 3
Make "for.instr [wait 60]
Make "for.step 1
Make "for.tester [:for.initial > :for.final]
Make "for.values [i 1 10]
Make "for.var "i
Make "i 3
This is unexpected. I think there are two solutions:
1. (preferred) Unable Edall while running.
2. bury for (and other) variables