title: For-loop variable scope confusion
body: <p>I have noticed a weird behavior of the variables in for loops. It's not really a problem, but it disturbs me a lot.<br>
  Actually I've created two loops this way:</p>
  
  <pre><code>for (var i:uint; i&lt;19; i++) SomeFunction (i);
  for (var i:uint; i&lt;26; i++) SomeOtherFunction (i);
  </code></pre>
  
  <p>What I received was a compilation warning:<br>
  <code>Warning: Duplicate variable definition.</code></p>
  
  <p>This warning really surprised me. Nothing like that ever happened to me in other languages.<br>
  It seems that the <code>i</code> variable gets into the scope that is higher in the hierarchy and becomes available out of the loop's block. I've also tried to embrace the loop block in a curly brace, but it didn't change anything.<br>
  Why does it happen? Is it normal? Is it possible to avoid it? For now I've just set different names for both of the variables, but that's not a real solution I think. I'd really like to use the <code>i</code>-named variable in most of my for-loops.</p>