 <p>Example 1: </p> <pre><code> loop { var x = anyobject do something with x } </code></pre> <p>create x and then release x each loop</p> <p>Example 2:</p> <pre><code>var x = anyobject loop { do something with x } </code></pre> <p>x inside the loop has the same memory with x outside the loop. Doesn't create/release each loop or end of the loop</p>