Cubist's first bug report
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=","
lock screen; lock messages
put the millisecs into m1
put empty into fld f
put 0 into s; put 0 into s; put 0 into s
add 1 to s[random(3)]
put cr & s &c& s &c& s after s0
put the millisecs - m1 &cr& \
s+s+s &cr& s0 into fld f
unlock screen; unlock messages
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