Cubist's first bug report

-hh hh at hh.on-rev.com
Sun Jun 5 13:47:58 EDT 2016


What's the culprit for that? I dare say:

= It's not the random (as Mark S. proved with his example)
= It's not a random-incompatible "add" (see example below)

It is the basic problem that LC has with counting items,
lines, words or other chunks. The number of <chunks> is
defined in a logically inconsistent way.

Example that works correctly:

local f="OUT", c=","
on mouseUp
  lock screen; lock messages
  put the millisecs into m1
  put empty into fld f
  put 0 into s[1]; put 0 into s[2]; put 0 into s[3]
  repeat 10000
    add 1 to s[random(3)]
    put cr & s[1] &c& s[2] &c& s[3] after s0
  end repeat 
  put the millisecs - m1 &cr& \
        s[1]+s[2]+s[3] &cr& s0 into fld f
  unlock screen; unlock messages
end mouseUp 



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Cubist-s-first-bug-report-tp4705407p4705410.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list