Re: repeat with times

2019-05-24 Thread Mark Wieder via use-livecode
On 5/24/19 10:25 AM, Mark Waddingham via use-livecode wrote: However in this case the lax parsing of repeat is not benign - you can write a 'repeat with' statement which looks like it is 100% correct but does not do what you expect:   i.e. repeat with i = 1 to 10 by 2 -- ignores the 'by' cla

Re: repeat with times

2019-05-24 Thread Mark Waddingham via use-livecode
On 2019-05-23 08:42, ambassador--- via use-livecode wrote: After re-reading the release notes I think this is probably the result of bug 20951 being squashed @ https://quality.livecode.com/show_bug.cgi?id=20951 That sounds like it. Yup - that's the one. The LCS parser is very lax, it tends n

Re: repeat with times

2019-05-24 Thread Mark Wieder via use-livecode
On 5/23/19 9:14 AM, Bob Sneidar via use-livecode wrote: I just put "put 5 times empty" into the message box and got 5. I don't get that when I try it. I first of all get an error message about not finding the handler, and then it displays "5". But the displayed value is a side effect of the

Re: repeat with times

2019-05-23 Thread Bob Sneidar via use-livecode
It may have passed in the past (ahem) because the engine might have thought you were trying to multiply 5 by empty, and if that is allowed (empty interpreted as 1) then the parser would go, "Okay, sure!" I just put "put 5 times empty" into the message box and got 5. "put 5 times" also gives me

Re: repeat with times

2019-05-23 Thread Bob Sneidar via use-livecode
Unless you were a bug, and then it might be perfectly fine. Bob S > On May 22, 2019, at 23:57 , Richmond via use-livecode > wrote: > > If syntax is invalid it is WRONG, and does not need to be flagged as > anything, just corrected. > > If I write: The dog me bit. > > It is wrong: it is no

Re: OT Re: repeat with times

2019-05-23 Thread Bob Sneidar via use-livecode
:-) > On May 23, 2019, at 06:37 , Sannyasin Brahmanathaswami via use-livecode > wrote: > > That's why Sanskrit pundits are working for AI at Microsoft, because > > Order Language Syntax matter does not > > BR > >  David V Glasgow wrote: > >What if Yoda you are? __

Re: OT Re: repeat with times

2019-05-23 Thread Sannyasin Brahmanathaswami via use-livecode
That's why Sanskrit pundits are working for AI at Microsoft, because Order Language Syntax matter does not BR  David V Glasgow wrote: What if Yoda you are? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subs

OT Re: repeat with times

2019-05-23 Thread David V Glasgow via use-livecode
What if Yoda you are? > On 23 May 2019, at 7:57 am, Richmond via use-livecode > wrote: > > If I write: The dog me bit. > > It is wrong: it is not a bug, nor a regression. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: repeat with times

2019-05-23 Thread Richmond via use-livecode
If syntax is invalid it is WRONG, and does not need to be flagged as anything, just corrected. If I write: The dog me bit. It is wrong: it is not a bug, nor a regression. Richmond. On 23.05.19 9:42, ambassador--- via use-livecode wrote: andrew at midwestcoastmedia.com wrote: I realize ther

Re: repeat with times

2019-05-22 Thread ambassador--- via use-livecode
andrew at midwestcoastmedia.com wrote: I realize there are better and more efficient ways to construct that loop, but the fact that the original code does not throw an error in 9.0.5rc1 but does throw an error in 9.5dp1 made it seem like a regression. If the syntax is invalid, flagging it as a

Re: repeat with times

2019-05-22 Thread Andrew Bell via use-livecode
I realize there are better and more efficient ways to construct that loop, but the fact that the original code does not throw an error in 9.0.5rc1 but does throw an error in 9.5dp1 made it seem like a regression. After re-reading the release notes I think this is probably the result of bu

Re: repeat with times

2019-05-21 Thread dunbarxx via use-livecode
Hi. What Ludovic suggests is not just a shortCut. You can say: repeat 5 or repeat 5 times but you could never say: repeat with y =1 to 5 times It is not a regression, that is, something in the latest v.9 build, it is bad syntax. Craig -- Sent from: http://runtime-revolution.278305.n4.nab

Re: repeat with times

2019-05-21 Thread Ludovic THEBAULT via use-livecode
> Le 21 mai 2019 à 20:24, Andrew Bell via use-livecode > a écrit : > > I'm excited to try some of the new features of LC 9.5 but found a regression > that has me dead in the water. Went to file a bug report, but 9.0.5 is the > newest version listed. (I realize the team is busy in San Jose th

repeat with times

2019-05-21 Thread Andrew Bell via use-livecode
I'm excited to try some of the new features of LC 9.5 but found a regression that has me dead in the water. Went to file a bug report, but 9.0.5 is the newest version listed. (I realize the team is busy in San Jose this week) Now that I'm a slightly more seasoned coder I know there are more