in reply to Re^2: Declare Variable in Loop
in thread Declare Variable in Loop

I presume that means that you don't want them accessible by code further down. The solution I presented solves exactly that problem.

Replies are listed 'Best First'.
Re^4: Declare Variable in Loop
by drodinthe559 (Monk) on Mar 26, 2010 at 22:39 UTC
    Thank you, I thought so. Would you just call that a block?

      Yes, or a bare block. I might also call it a scope since it creates one. ("I created a scope for your variables.")

      Furthermore, it is sometimes called "bare loop", since it really is a loop that executes exactly once. redo causes the loop to restart, and next and last exit it. It's only called a bare loop when one of those is used as well.

      Update: lidden pointed out that I grouped next with redo when I should have grouped it with last. Fixed.

      Because thats the name :)