Cubist's first bug report

Lagi Pittas iphonelagi at gmail.com
Mon Jun 6 08:21:15 EDT 2016


HI It looks to me that the ANY command/function is reusing a global
variable of some type
or if there is an optimizing stage it is reusing the "register" whether in
the bytecode interpreter instructions
or the bytecode interpreter per se.

The larger the number the items reach a limit which I would suggest is a
register overflowing. It's a best guess as  this happened to me many moons
ago where  I found a bug in the  Pcode  interpreter of Apple ][ UCSD Pascal
by disassembling the 6502 code.(when I had the time and inclination and
wanted to know why my quicksort routine wasn't working)

Wouldn't know where to start with livecode

Then again I could be totally wrong , I cant see how a chunk expression can
have a double evaluation effect - and if it was adding 0 to anything would
still be zero, so that's why I suggest
a register is being overwritten somehow,

Lagi

On 6 June 2016 at 05:34, FlexibleLearning.com <admin at flexiblelearning.com>
wrote:

> This double-evaluation bug has existed since MC v4.2 (the earliest engine I
> have immediately to hand).
>
> [snip]
> 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
> [/snip]
>
> Hugh Senior
> FLCo
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list