Crowd Funding Enhancements
Scott Rossi
scott at tactilemedia.com
Sat Mar 15 13:16:09 EDT 2014
We have all been doing what you suggest for years, which is precisely the
point. There are several reasons why having "repeat for each <control>"
would be extremely welcome.
1) Precedents for this structure already exist in the language, so it's
not a departure:
repeat for each item x in "a,b,c".
2) The "repeat for each" structure is more efficient than looping through
controls, and developers would gain the benefits of fast processing.
3) The lives of developers would be easier.
How many times have I started typing "repeat for each button" and then
stopped myself, having remembered "Oh yeah, we can't do that."
Regards,
Scott Rossi
Creative Director
Tactile Media, UX/UI Design
On 3/15/14 8:59 AM, "Richmond" <richmondmathewson at gmail.com> wrote:
>>>That'd be nice. And as long as we're dreaming, how about:
>>>
>>> repeat for each card c in this stack
>>> repeat for each button b of this card
>>>
>>I had to do that for myself way back in hypercard . . . it was absolutely
>>necessary for what I was doing, and I've never understood why it wasn't
>>part of the language.
>>
>>
>
>Why not just have a script something like this:
>
>put 1 into KARD
>repeat until exists(card KARD) = false
>-- do whatever you want on card KARD
>put (KARD + 1) into KARD
>end repeat
More information about the use-livecode
mailing list