alice-teacher For-loop complicated version doesn't show index change when watching the variable

Donald Slater djslater107 at mac.com
Wed Jan 26 12:09:47 EST 2022


Again, Thank you very much for this bug catch. I have forwarded the sto the dev team, with a project that demonstrates the issue.

I am not sure of the underlying implementation of the loop and the complicated representation of it. It may very well be that the Watch this Variable  window / system is created and displayed before index comes into scope. In that case. “Watch this variable” should not be an option for this variable.

Thank you,
Don Slater
Alice Project


> On Jan 26, 2022, at 11:06 AM, Carlos Bovell via alice-teachers <alice-teachers at lists.andrew.cmu.edu> wrote:
> 
> Hi,
> 
> We have another bug to report. We're using the show complicated version feature for loops, and I had our class watch the index variable so we could watch it count the iterations. To our surprise, it said "None" the entire time. So we created a myIndex number variable, set its value to equal index somewhere inside the loop and watched that variable change to see for ourselves that index is indeed keeping track of the iterations. 
> 
> Is there a way to get index to change on the "watch this variable" panel when playing a world?
> 
> Carlos
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu <mailto:alice-teachers at lists.andrew.cmu.edu>
> To change settings or unsubscribe visit:
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers <https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20220126/515f327e/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: watchVariable.a2w
Type: application/octet-stream
Size: 320568 bytes
Desc: not available
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20220126/515f327e/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20220126/515f327e/attachment-0003.html>


More information about the alice-teachers mailing list