Re: Nested Repeat loops

2014-06-24 Thread Peter Haworth
Submitted QCC report 12691 for this. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jun 21, 2014 at 3:00 PM, Alex Tweedly wrote: > On 21/06/2014 15:22, Richard Gaskin

Re: Nested Repeat loops

2014-06-21 Thread Alex Tweedly
On 21/06/2014 15:22, Richard Gaskin wrote: At the RevLive conference in Vegas a few yeas back, Robert Cailliau's opening keynote covered some of the most adventurous feature requests I've ever heard anyone suggest for xTalks. Among them was the notion of named control structures, in part for

Re: Nested Repeat loops

2014-06-21 Thread Peter Haworth
Thanks for all the suggestions. I like the idea of putting the whole nest of repeats in a separate handler as far as the current capabilities of the language, but I really like the idea in Richard's email to have the ability tp name each loop then exit out of a named loop. Is there a QCC report o

Re: Nested Repeat loops

2014-06-21 Thread Richard Gaskin
Peter M. Brigham wrote: On Jun 21, 2014, at 2:33 AM, Richmond wrote: put 1 into XX repeat until XX>7 do something put 1 into ZZ repeat until ZZ>7 do something else put 1 into YY repeat until YY>7 ask "What colour are you socks?"

Re: Nested Repeat loops

2014-06-21 Thread Peter M. Brigham
On Jun 21, 2014, at 2:33 AM, Richmond wrote: > put 1 into XX > repeat until XX>7 > do something >put 1 into ZZ >repeat until ZZ>7 > do something else > put 1 into YY >repeat until YY>7 >ask "What colour are you socks?" >

Re: Nested Repeat loops

2014-06-21 Thread John Craig
cs with messages if the shiftKey is down then throw "exit" end repeat end repeat end repeat end try end mouseUp On 21/06/2014 02:18, Peter Haworth wrote: Wondering if anyone has an elegant way of exiting all the way out of a

Re: Nested Repeat loops

2014-06-20 Thread Richmond
On 21/06/14 04:34, Dr. Hawkins wrote: On Fri, Jun 20, 2014 at 6:18 PM, Peter Haworth wrote: Wondering if anyone has an elegant way of exiting all the way out of a set of nested repeat loops., e.g: It's a badly needed language addition, and one of the things I want from Fortran. Then

Re: Nested Repeat loops

2014-06-20 Thread jbv
In some cases I managed to replace "repeat for" with "repeat while" and thus eliminating the flag and the test on it since the condition is in the repeat loop itself. jbv > Wondering if anyone has an elegant way of exiting all the way out of a set > of nested repeat l

Re: Nested Repeat loops

2014-06-20 Thread Geoff Canyon
to set a flag like > you do. We need an "exit all repeats" command. > > On June 20, 2014 8:18:59 PM CDT, Peter Haworth wrote: > >Wondering if anyone has an elegant way of exiting all the way out of a > >set > >of nested repeat loops. > -- > Jacqueline Lan

Re: Nested Repeat loops

2014-06-20 Thread Warren Samples
On 06/20/2014 08:18 PM, Peter Haworth wrote: Wondering if anyone has an elegant way of exiting all the way out of a set of nested repeat loops., e.g: repeat for... repeat for... repeat for repeat for if . then end repeat end

Re: Nested Repeat loops

2014-06-20 Thread Jerry Jensen
; do. We need an "exit all repeats" command. > > On June 20, 2014 8:18:59 PM CDT, Peter Haworth wrote: >> Wondering if anyone has an elegant way of exiting all the way out of a >> set >> of nested repeat loops. > -- > Jacqueline Landman Gay

Re: Nested Repeat loops

2014-06-20 Thread J. Landman Gay
I've needed that too occasionally but I've always had to set a flag like you do. We need an "exit all repeats" command. On June 20, 2014 8:18:59 PM CDT, Peter Haworth wrote: >Wondering if anyone has an elegant way of exiting all the way out of a >set >of nested

Re: Nested Repeat loops

2014-06-20 Thread Dr. Hawkins
On Fri, Jun 20, 2014 at 6:18 PM, Peter Haworth wrote: > Wondering if anyone has an elegant way of exiting all the way out of a set > of nested repeat loops., e.g: > It's a badly needed language addition, and one of the things I want from Fortran. Then again, I actually used

Nested Repeat loops

2014-06-20 Thread Peter Haworth
Wondering if anyone has an elegant way of exiting all the way out of a set of nested repeat loops., e.g: repeat for... repeat for... repeat for repeat for if . then end repeat end repeat end repeat end repeat Right now