<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Nicely illustrated 'technicality'.</div><div class="gmail_default" style="font-family:georgia,serif">What's the logic or reason for the inner DoTogether containing only the num1 and nums initializers?</div><div class="gmail_default" style="font-family:georgia,serif">Is this exercise only to show the scope doesn't extend outward?</div><div class="gmail_default" style="font-family:georgia,serif">AZ</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 18, 2022 at 1:45 PM Leonel Morales <<a href="mailto:litomd@gmail.com">litomd@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">I guess it has to do with blocks' translation into Java. Do in order translation places all instructions inside curly brackets creating a semantic scope.<div><br></div><div>I examined the code with the "Java code on the side" option and obtained this:</div><div><br></div><div><img src="cid:ii_l3bv0dev1" alt="image.png" style="margin-right: 25px;"><br></div><div><br></div><div>And it works... not sure if it should.</div><div><br></div><div>Regards,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié, 18 may 2022 a las 10:43, Carlos Bovell via alice-teachers (<<a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank">alice-teachers@lists.andrew.cmu.edu</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
In Alice 3, the do in order control structure limits scope. Is there a reason for that? In the attached screenshot, the variable outside the do in order can't be assigned any of the variables' values that were declared inside the do in order.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Carlos</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<img style="max-width: 100%;" size="142318" src="cid:180d8353efbcb971f161"><br>
</div>
</div>
_______________________________________________<br>
alice-teachers mailing list<br>
<a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank">alice-teachers@lists.andrew.cmu.edu</a><br>
To change settings or unsubscribe visit:<br>
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" rel="noreferrer" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a></blockquote></div></div>
_______________________________________________<br>
alice-teachers mailing list<br>
<a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank">alice-teachers@lists.andrew.cmu.edu</a><br>
To change settings or unsubscribe visit:<br>
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" rel="noreferrer" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Adam Ziccardi<br></div><div dir="ltr"><div><font size="1">716-209-6482</font></div><div><font size="1">OPTA president</font></div><div><font size="1">K-12 CS coordinator</font></div><div><font size="1">NYS Master Teacher</font></div><div><font size="1"><a href="https://www.opschools.org/Domain/2958" target="_blank">Teacher Webpage</a></font></div><div><br></div></div></div></div></div>