Re: Fun (was Re: Cubist's first bug report)

2016-06-06 Thread Terence Heaford
> On 6 Jun 2016, at 06:33, Monte Goulding wrote: > > Hmm… certainly an interesting idea: > > put 1,2,3 into tVar > myAdd 5, item 3 of tVar > > command myAdd pToAdd, @xAddTo > put pToAdd+xAddTo into xAddTo > end myAdd > > tVar = 1,2,8 > > I doubt we should get our hopes up Dar ;-) > > Of c

Re: Fun (was Re: Cubist's first bug report)

2016-06-05 Thread Monte Goulding
> On 6 Jun 2016, at 3:15 PM, Dar Scott wrote: > > The problem is more general than the use of any and random(). It applies to > functions with side effects. > > And if the compiler is allowed to combine like-looking expressions (as in > your example), it should prove that there can be no s

Re: Fun (was Re: Cubist's first bug report)

2016-06-05 Thread Dar Scott
The problem is more general than the use of any and random(). It applies to functions with side effects. And if the compiler is allowed to combine like-looking expressions (as in your example), it should prove that there can be no side effects. One solution would be to allow the building o

Re: Fun (was Re: Cubist's first bug report)

2016-06-05 Thread Monte Goulding
> On 6 Jun 2016, at 12:47 PM, Mark Wieder wrote: > > Turns out an additional note was needed to cover "any". I am less concerned about the quirky behavior of any and random chunks considering it is easy to work around it than I am about the re-evaluation of the chunk expression which could be

Re: Fun (was Re: Cubist's first bug report)

2016-06-05 Thread Mark Wieder
On 06/05/2016 05:04 PM, Monte Goulding wrote: I suspect not. I didn't realise one was open ;-) Turns out an additional note was needed to cover "any". http://quality.livecode.com/show_bug.cgi?id=7919 http://quality.livecode.com/show_bug.cgi?id=17795 -- Mark Wieder ahsoftw...@gmail.com

Re: Fun (was Re: Cubist's first bug report)

2016-06-05 Thread Mark Wieder
On 06/05/2016 05:00 PM, Dar Scott wrote: I missed Mark's comment. Sorry about poking at this while it was actually understood. Actually, I thought you came up with some very interesting nuances. These should make it into the test suite. -- Mark Wieder ahsoftw...@gmail.com ___

Re: Fun (was Re: Cubist's first bug report)

2016-06-05 Thread Monte Goulding
I suspect not. I didn't realise one was open ;-) Sent from my iPhone > On 6 Jun 2016, at 9:52 AM, Mark Wieder wrote: > > There are two bug reports on this already. Do you need a third? ___ use-livecode mailing list use-livecode@lists.runrev.com Pleas

Re: Fun (was Re: Cubist's first bug report)

2016-06-05 Thread Dar Scott
> On Jun 5, 2016, at 5:52 PM, Mark Wieder wrote: > > Yes, I believe that's the gist of LCMark's comment in the bug report. Ah, looks like they have it on the run. I missed Mark's comment. Sorry about poking at this while it was actually understood. Dar

Re: Fun (was Re: Cubist's first bug report)

2016-06-05 Thread Mark Wieder
On 06/05/2016 04:03 PM, Monte Goulding wrote: I’ve taken a little look into it and yes it does appear the chunk is being evaluated twice: Yes, I believe that's the gist of LCMark's comment in the bug report. Please submit a bug report so we can look into it further... There are two bug repo

Re: Fun (was Re: Cubist's first bug report)

2016-06-05 Thread Monte Goulding
> On 6 Jun 2016, at 6:06 AM, d...@swcp.com wrote: > > I suspect that random(16) is being evaluated twice based on a first glance > at the pattern. I’ve taken a little look into it and yes it does appear the chunk is being evaluated twice: Add left to right - get value to add by and evaluat

Re: Fun (was Re: Cubist's first bug report)

2016-06-05 Thread Dar Scott
> On Jun 5, 2016, at 2:26 PM, [-hh] wrote: > > And this, not this much funny, creates a CRASH (showing "inf"): > on mouseUp > put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar > repeat 1000 >add 1 to item (any item of myVar) of myVar > end repeat > put myVar into fld 1 > end mouse

Re: Fun (was Re: Cubist's first bug report)

2016-06-05 Thread [-hh]
Dar Scott wrote > on mouseUp >put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar >repeat 1000 > add zero to any item of myVar >end repeat >put myVar > end mouseUp Your example is really convincing, nothing to say more. This introduces, still funny, some variation: on m

Re: Fun (was Re: Cubist's first bug report)

2016-06-05 Thread dsc
on mouseUp put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar repeat 1000 add zero to any item of myVar end repeat put myVar end mouseUp > On Jun 5, 2016, at 2:06 PM, d...@swcp.com wrote: > > Just for fun: > > on mouseUp > put LF into newLine > put 0 into sRandomCount