Re: Things I thought I knew, but didn't - variable scope in repeat loops
Re: Things I thought I knew, but didn't - variable scope in repeat loops
- Subject: Re: Things I thought I knew, but didn't - variable scope in repeat loops
- From: "Mark J. Reed" <email@hidden>
- Date: Sat, 27 Dec 2008 16:19:26 -0500
On Sat, Dec 27, 2008 at 12:48 PM, Doug McNutt <email@hidden> wrote:
>
> Mark got quoted this way:
>>>
>>> Applescript builds a list of values (or an iterator/generator) and
>>> sets i to the next value at the top of the loop; it doesn't look at
>>> the current value of i to determine what the next value of i should
>>> be. So you can do anything you want to i inside the loop and it
>>> won't affect the loop control logic:
>
> Doesn't that imply a limit on the number of times through a repeat loop?
Not if it's an iterator/generator instead of a list, which I assume is
the case for counting loops.
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden