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

I'm trying to remove them as variable since they are only temporary.

Replies are listed 'Best First'.
Re^3: Declare Variable in Loop
by ikegami (Patriarch) on Mar 26, 2010 at 22:31 UTC
    I presume that means that you don't want them accessible by code further down. The solution I presented solves exactly that problem.
      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 :)